Skip to content

Fix session list pending message payload#1479

Merged
1 commit merged intonesquena:masterfrom
Thanatos-Z:fix/session-list-pending-message-payload
May 2, 2026
Merged

Fix session list pending message payload#1479
1 commit merged intonesquena:masterfrom
Thanatos-Z:fix/session-list-pending-message-payload

Conversation

@Thanatos-Z
Copy link
Copy Markdown
Contributor

Summary

Follow-up to merged PR #1473.

The frontend reload/sidebar recovery logic already checks both active_stream_id and pending_user_message, but the /api/sessions list payload still omitted pending_user_message from Session.compact(). That meant the sidebar filter could not reliably preserve zero-message in-flight sessions based on pending user text alone.

This patch:

  • adds pending_user_message to the compact session payload used by /api/sessions
  • extends the existing session streaming-state regression test to assert the field is present for both indexed and in-memory sessions
  • adds the one-line {0} placeholder comment requested in review next to t() string interpolation

Why this is separate

PR #1473 is already merged. This is the smallest follow-up patch to close the remaining backend payload gap identified in review.

Tests

I was able to verify the code path and keep the patch minimal, but I could not run tests/test_issue856_session_streaming_state.py to completion inside the current local sandbox because api.config rejects the sandbox workspace during import-time default workspace resolution.

The added test is a direct extension of the existing backend regression coverage in tests/test_issue856_session_streaming_state.py.

@nesquena-hermes nesquena-hermes closed this pull request by merging all changes into nesquena:master in b8a346f May 2, 2026
nesquena-hermes pushed a commit to ccqqlo/hermes-webui that referenced this pull request May 2, 2026
nesquena-hermes pushed a commit to ccqqlo/hermes-webui that referenced this pull request May 2, 2026
…267 follow-ups

- CHANGELOG.md: v0.50.269 entry detailing nesquena#1478 nesquena#1479 nesquena#1480
- ROADMAP.md: bump to v0.50.269, 3847 tests collected
- TESTING.md: bump header + total to 3847

nesquena#1478: nesquena APPROVED self-built bootstrap.py --foreground mode
       (closes nesquena#1458 Bug nesquena#1, +Opus follow-ups: XPC noise filter, executability guard)
nesquena#1479: surgical follow-up to nesquena#1473 — Session.compact() now includes pending_user_message
nesquena#1480: bfcache pageshow restores active session via loadSession + checkInflightOnBoot

3847 tests pass (+47 net). Opus advisor on stage diff: no blockers.
@Thanatos-Z Thanatos-Z deleted the fix/session-list-pending-message-payload branch May 3, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants