fix(chat): align WebUI context with messaging sessions#2547
Conversation
|
Read the PR head (540292a) end to end: Three points to consider before merge. 1.
|
Phase 0 re-assessment — same subprocess surface concern as closed #2526Thanks @AJV20 for the consolidated take that combines the surface-context block from the original #2523 with the prefill loader from #2526 into a single coherent PR. The agent review on this head (540292a) caught three good performance/security notes that should still be addressed (per-turn subprocess cost, I want to re-raise the architectural concern I raised on the closed #2526, because the surface here is the same — and the three flagged review notes are downstream symptoms of that surface choice:
Suggested paths
Applying Note: this isn't a re-litigation of feedback that's been addressed — the three agent review notes are valid and would still need to land. It's a layer above those: are we adding the right surface at all? |
…arity # Conflicts: # CHANGELOG.md
…arity # Conflicts: # CHANGELOG.md
|
Updated this branch in What changed:
Verification:
|
Summary
prefill_messages_fileorprefill_messages_scriptfor WebUI chat turns and passes it to Hermes Agent as ephemeral prefill context, matching the recall behavior operators expect from other Hermes surfaces.Test Plan
python3 -m py_compile api/streaming.py api/routes.py api/config.pypython3 -m pytest tests/test_webui_surface_context.py tests/test_webui_prefill_context.py tests/test_sprint42.py -q(35 passed)Notes
This is a focused context/tone parity PR for browser-originated chat turns. It keeps prefill message bodies out of the browser-visible context status event and out of saved WebUI transcripts.