Inbox management: quick settle and agent discovery#2

merged2
main
feature/inbox-management
openedOct 19, 2026byEezterry

Summary

  • Ctrl+S on the main chat screen settles the displayed session using the same handler as /settle: remove it from Inbox and close the chat to open a welcome draft after acknowledgement.
  • Preserve idle alerts and ignore the shortcut in dialogs and popups.
  • Add Inbox discovery and a filtered Ruby API recipe to the reflection skill.
  • Document the shortcut and include it in help.

Changes since the initial post

The initial implementation deliberately kept the conversation and composer open. Terry reported that this did not match the expected settle behavior. Commit ef0a798 corrects that design: Ctrl+S now behaves exactly like /settle, including closing the chat. The regression test and shortcut documentation were updated accordingly.

The same follow-up includes the pending reflection-skill fix: exclude temporary sessions and skip malformed alert timestamps when listing current Inbox entries.

Validation and readiness

  • Full pkg/tui tests and builtin skill tests passed after the correction.
  • Focused Ctrl+S and settle acknowledgement, failure, and navigation tests passed.
  • CLI and builtin binaries built into build/; git diff --check passed.
  • Claude reviewed head ef0a798 and reported no blocking code issues.
  • Terry confirmed the terminal Ctrl+S behavior works, addressing the original concern and completing the outstanding manual shortcut check.
  • Ready for final full test validation, then merge if it passes. Full validation has not yet been run for this final gate. The PR remains open and unmerged.

Agent signoff -- openai/gpt-6.1-sol

Added 1 commit

  • feat(tui): add quick inbox settle with Ctrl-Sb5104af

Added 1 commit

  • fix(tui): make Ctrl-S close the settled chatef0a798

Verdict: ready to merge once the live terminal Ctrl+S check passes. I found no blocking code issues.

What I checked (head ef0a798)

  • Terry's report (Ctrl-S doesn't close the chat) is addressed. Ctrl+S on the chat page calls handleInboxVisibility(false), the same handler as /settle and its command-menu entry, so the behavior matches.
  • No other KeyCtrlS binding exists in pkg/tui, so there's no key conflict. The shortcut only fires on the chat page; the new tests cover editor, confirm, help and sessions overlays.
  • Terminal flow control: tcell enters raw mode through x/term MakeRaw, which clears IXON, so Ctrl+S shouldn't freeze output. This is from reading the source, not a live run.
  • go test ./pkg/tui -run 'TestCtrlS|TestSettle|TestInbox' passes on this head.
  • The Ruby recipe in the reflection skill uses real methods: sessions.list(metadata_keys:) and metadata.update(delete:).
  • docs/cmd/ez-agent.md and the help text in info_app.go describe the same shortcut.

Concerns

  1. The live terminal Ctrl+S test is still open (the PR description says so). It's the only check that confirms the fix end to end, so do it before merging.
  2. Terry's review thread on the first comment is still unresolved. Resolve it after the live check passes.
  3. This connection can't merge (MERGE_NOT_AUTHORIZED). The merge has to go through SSH push per the repo guidance, so I did not merge.
  4. I ran only the focused tests above, not the full pkg/tui or Ruby suites.

Agent signoff -- claude/claude-haiku-5-5

Ready for final full tests and merge at ef0a798. Ctrl+S now shares the /settle handler, including closing the chat after acknowledgement. Terry confirmed the terminal behavior works, addressing the original report. The relevant reflection-skill fix is included, and code review found no blocking issues.

The description now explicitly records the change from the initial keep-chat-open design. Focused tests, full TUI package tests, builtin skill tests, and targeted builds passed. With Terry's approval, the next gate is just build and the full just test, followed by an SSH merge if validation succeeds.

Agent signoff -- openai/gpt-6.1-sol

Final validation passed on head ef0a798: just build && just test exited 0. The Python stage reported 410 passed and 3 skipped. Terry confirmed the terminal Ctrl+S behavior.

Merged through SSH into main with explicit merge commit af75df0, and pushed successfully to public/main. GitCafe still reported this PR as open on the post-push verification, so there is a PR-state synchronization discrepancy. I have not closed it as a substitute for a merged state.

Agent signoff -- openai/gpt-6.1-sol