Skip to content

feat(tui): list sessions in /sessions and reveal agents on demand (ENG-1070) - #358

Closed
lg2m wants to merge 31 commits into
feat/eng-1069-tui-session-railfrom
feat/eng-1070-tui-session-picker
Closed

lg2m wants to merge 31 commits into
feat/eng-1069-tui-session-railfrom
feat/eng-1070-tui-session-picker

Conversation

@lg2m

@lg2m lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

F3: list sessions in /sessions and reveal agents on demand

Spec: docs/plans/tui-focus.md#f3-picker Linear: ENG-1070 (parent ENG-1067)
Stacked on #356.

What changed

  • /sessions lists sessions only, each with a right-aligned ▸ ↳N agent badge (▾ when expanded).
  • Tab toggles, Right expands, Left collapses the highlighted session's agents (also from one of its agent rows); Ctrl-A lists every agent.
  • A search matches agents too; a found agent row is prefixed with its session's title (Fan out › agent 1).
  • The picker opens with a focused agent's session expanded and the cursor on it. /agents is unchanged: the focused tree, fully listed.
  • Cursor fallback: when the highlighted agent row stops being listed (query cleared, collapse, Ctrl-A off), the cursor moves to its session.
  • Audit agents have no row. PickerItem::listed (default true) is the one generic addition: unlisted items are hidden only from the empty query.

How verified

cargo xtask check

Head b172ffc85fb6 vs origin/main; 81 changed file(s); scope: qq, qq-tui, xtask.

Gate Result Tests Time Command
fmt pass 1.6s cargo fmt --all -- --check
lint pass 2.1s cargo xtask lint
clippy pass 4.8s cargo clippy --color never -p qq -p qq-tui -p xtask --all-targets --all-features -- -D warnings
test fail 841/842 passed, 3 skipped 74.5s cargo nextest run --color never --profile default -p qq -p qq-tui -p xtask
  • qq headless::tests::closing_goal_host_drains_accepted_work_without_admitting_successors: panicked at src/headless.rs:4553:18

Failed in 83.1s.

The single failure is the pre-existing wall-clock flake filed as ENG-1074: it fails identically on origin/main on this host under load (4/4 runs at load ≈7) and passed in CI on #356. This PR does not touch src/headless.rs. All 402 qq-tui tests pass.

  • New tests: the_session_picker_expands_and_collapses_a_sessions_agents, a_session_picker_search_finds_agents_and_clearing_it_falls_back_to_their_session, the_session_picker_opens_a_focused_agents_session_expanded, the_session_picker_shows_sessions_with_agent_badges_and_names_a_found_agents_session; agents_picker_lists_only_the_focused_roots_subtree now asserts /sessions lists sessions only.
  • Goldens unchanged (no golden scene opens the picker).

Docs

  • docs/design/layout.md § Session picker; docs/guide/tui.md § Sessions; ledger receipt.

Compatibility

  • PROTOCOL / DESCRIPTOR / schema: unchanged. No new dependencies.

…G-1070)

Slice F3 of docs/plans/tui-focus.md. Tab/Right/Left expand and collapse a session's agents, Ctrl-A lists every agent, a search matches agents and names their session, and the cursor falls back to the session when its agent row is no longer listed.
@lg2m

lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T08:09:34.011224Z d358425 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b172ffc85f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/picker.rs Resolved
Comment thread crates/qq-tui/src/app/pickers.rs Resolved
…session-picker

Also: the picker skips audit roots orphaned by a deleted parent; test covers audit rows in /sessions, Ctrl-A, search and /agents (plan acceptance).
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9982668692

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/app/pickers.rs Resolved
lg2m added 2 commits October 18, 2026 23:09
…session-picker

# Conflicts:
#	docs/plans/progress/tui-focus.md
…ork on no match (ENG-1070)

Addresses Codex review on #358: clearing a search no longer jumps to the first row, Left on a searched agent reaches its session, Ctrl-A toggles on an empty result. Merges the F1-F2 review fixes.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: f13d773399

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: c327101e3f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 660f250a00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/app/pickers.rs Resolved
Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/app/pickers.rs Resolved
lg2m added 2 commits October 19, 2026 11:02
…, and re-derive its root after a tree change (ENG-1070)

Addresses the third Codex review on #358. Merges the F1-F2 fixes.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 72b6744f41

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4272925934

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/app/pickers.rs Resolved
Comment thread crates/qq-tui/src/app/pickers.rs Resolved
lg2m added 2 commits October 19, 2026 20:36
…irmations, show the create hint for audit-only stores (ENG-1070)

Addresses the 11th Codex review on #358 and #354.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

1 similar comment
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m

lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e094855738

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qq-tui/src/view/overlay.rs Resolved
Comment thread crates/qq-tui/src/app/pickers.rs Resolved
lg2m added 8 commits October 19, 2026 22:17
…session-picker

# Conflicts:
#	crates/qq-tui/src/app/pickers.rs
#	docs/plans/progress/tui-focus.md
… follow an orphan's top when its parent arrives in /agents (ENG-1070)

Addresses the 12th Codex review on #358.
…eted agent's cursor to its session (ENG-1070)

Found in a pre-review of #358.
…session-picker

# Conflicts:
#	crates/qq-tui/src/app/pickers.rs
…fresh an open picker after any snapshot (ENG-1070)

Found in a pre-review of #358.
@lg2m

lg2m commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 07f4737dcc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m

lg2m commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Closing in favor of the v0.1.11 TUI plan (ENG-1104, docs/plans/0.1.11.md). This PR's design is carried into section C (ENG-1107: https://linear.app/retsu-ai/issue/ENG-1107), and its unresolved review findings are listed there as required tests. The code will be redone against main, because this stack no longer merges cleanly.

@lg2m lg2m closed this Oct 29, 2026
@lg2m
lg2m deleted the feat/eng-1070-tui-session-picker branch October 29, 2026 04:35
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.

1 participant