Skip to content

fix(tui): follow compression tips when resuming sessions#13374

Open
Tosko4 wants to merge 1 commit into
NousResearch:mainfrom
Tosko4:fix/tui-resume-compression-tip
Open

fix(tui): follow compression tips when resuming sessions#13374
Tosko4 wants to merge 1 commit into
NousResearch:mainfrom
Tosko4:fix/tui-resume-compression-tip

Conversation

@Tosko4

@Tosko4 Tosko4 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make TUI/gateway session.resume follow compression continuations through db.get_compression_tip(...)
  • add regression coverage that resumes a compression root and verifies the live continuation tip is reopened and hydrated

Why

A resumed compressed conversation could appear to lose post-compaction messages because session.resume reopened the old root session instead of the latest continuation tip. The data was still present in session lineage, but this path was not following it.

Validation

  • ./scripts/run_tests.sh -n 0 tests/tui_gateway/test_protocol.py tests/test_hermes_state.py -q --tb=short, 266 passed
  • python -m compileall -q tui_gateway/server.py tests/tui_gateway/test_protocol.py
  • git diff --check origin/main...HEAD

Notes

@Tosko4 Tosko4 force-pushed the fix/tui-resume-compression-tip branch from 798006b to 6f56e84 Compare April 21, 2026 08:05
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tui Terminal UI (ui-tui/ + tui_gateway/) comp/gateway Gateway runner, session dispatch, delivery labels Apr 22, 2026
@Tosko4 Tosko4 force-pushed the fix/tui-resume-compression-tip branch 5 times, most recently from ecf7d67 to 775e641 Compare May 1, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/tui Terminal UI (ui-tui/ + tui_gateway/) P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants