Skip to content

feat(tui): add non-interrupting /btw side questions (SQ2) - #270

Merged
lg2m merged 7 commits into
feat/eng-1011-sq1-side-runtimefrom
feat/eng-1011-sq2-side-surfaces
Oct 9, 2026
Merged

lg2m merged 7 commits into
feat/eng-1011-sq1-side-runtimefrom
feat/eng-1011-sq2-side-surfaces

Conversation

@lg2m

@lg2m lg2m commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Stack

Parent #266 (SQ1), planning #262. Tracking https://linear.app/retsu-ai/issue/ENG-1011. Preserve combined-merge stack.

Behavior

/btw QUESTION and /ask QUESTION submit independent side questions even while main work runs. /btw-new QUESTION starts a new side thread (own completion entry; accepting it leaves /btw-new for the question); /btw-cancel cancels only the side ID, using the receipt-acknowledged ID until the SSE update arrives. Empty /btw opens the separate scrollable view for its source session; session commands (/models, /profile, /approval, /effort, /delegate) and side errors stay on that session there. Plain text continues the thread, Esc returns to main. Answers are width-wrapped with independent status/cost (format_cost)/turns and never become main prompts/steering. Guide updated, including the qualified 120 s limit.

Verification

Codex review fixes add 10 regression tests (side view focus/approval/source-session commands, rejected notices, acknowledged-ID cancel incl. lost race, autocomplete, small costs, source deletion). On head 546471d: cargo test --workspace 2,218 passed, 0 failed, 13 ignored; cargo fmt --all -- --check and cargo clippy --workspace --all-targets --all-features -- -D warnings clean. No live credentials/network tests.

Limits

Side context/history/capture bounds are enforced by SQ1 (protocol 32 / schema 44); live inspection is not a filesystem snapshot. No goal implementation included.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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-07T07:07:15.315267Z 7dd67f4 PR opened
ℹ️ 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: 7dd67f4356

ℹ️ 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.rs Resolved
Comment thread crates/qq-tui/src/viewport.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
Comment thread crates/qq-tui/src/view/workspace.rs Resolved
Comment thread crates/qq-tui/src/commands.rs Resolved
Comment thread docs/guide/tui.md Resolved
@lg2m
lg2m added this pull request to stack #269 October 7, 2026 16:26
lg2m added 5 commits October 9, 2026 01:11
The 120 s ceiling cuts off execution; durable finalization afterwards is a
store write, so the recorded final state can trail it under load.

Addresses Codex review on #270. Refs: ENG-1011
- View::SideQuestions carries its source session, so focus-dependent
  commands (/models, /profile, /approval, /effort, /delegate) and rejected
  side submit/cancel notices stay on that session. Approval input, the
  transcript cursor, and unread accounting follow the shown transcript.
- /btw-cancel targets the receipt-acknowledged side question until its
  terminal update arrives, so cancel works before SSE catches up.
- /btw-new is its own command whose autocomplete leaves '/btw-new ' in the
  composer; a bare /btw-new warns instead of opening the view.
- Side costs render through format_cost (six fractional digits, no f64).

Addresses Codex review on #270. Refs: ENG-1011
Addresses Codex review on #270. Refs: ENG-1011
…side-surfaces

Handle side_question_already_finished: release the acknowledged id and
report that the question had already finished.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@lg2m
lg2m merged commit e317bdf into main Oct 9, 2026
6 checks passed
@lg2m
lg2m deleted the feat/eng-1011-sq2-side-surfaces branch October 9, 2026 19:48
lg2m added a commit that referenced this pull request Oct 10, 2026
* docs: move research into docs/research and give plans names matching their ledgers

Research snapshots leave design/ (which is present-tense, as built) for
docs/research/ with undated names; the snapshot date stays in each header.
speed-first and terminal-bench plans now share their ledger's name, and the
progress-report runbook is named for what it is: run-output store queries.
Also repairs the two broken links (ADR-0039, concepts.md).

* docs: update references to the renamed speed-first and terminal-bench plans

* docs(plans): retire shipped plans and orphaned ledgers; reconcile statuses with Git

- side-questions plan shipped (SQ0-SQ2, #262/#266/#270): its contract moves
  to design/side-questions.md, written against side_questions.rs.
- Delete ledgers whose plans closed (delegated-approval, onboarding-ux,
  mcp-pinning, codex-device-auth, latest-models, harness-f25-empty-range);
  F25 folds into root.md. Receipts remain in Git history.
- Mark ledger rows Shipped where the commit is on main (GE0, GE10, JV0-JV2,
  RR4.1-RR8.4, TE0, T2.1, U5-U7, D4a.1, D6a.1, F11, F23, F24).
- Collapse tui-redesign to its open L4/U8 slices; the shipped spec is in
  layout.md, transcript.md and theme.md.
- Rewrite plans/README.md and progress/README.md: every plan and ledger
  listed once, stale priorities (CX1-CX4, GE0, T15-T17, TE1) replaced,
  ownership rows for shipped work moved to design pointers.
- docs/README.md gains a research section and a naming convention.

* docs(adr): one index table with titles from each ADR; record reserved and unused numbers

- 0031-0056 move from a bullet list into the table; titles match each H1.
- A gaps table records 0016-0018, 0037 and 0055 as reserved and 0029,
  0044/0045 (#187 closed unmerged) and 0053 as unused; root.md agrees.
- Supersession metadata on 0003, 0028 and 0030 (status lines only).
- root.md: 0028 and 0031-0035 are merged, not local candidates.

* docs(design): make design docs describe the system as built

- architecture.md: real dependency graph (qq-harness; qq-tui -> qq-core),
  real src/ tree, real route shape instead of an invented sketch; present
  tense throughout; tool list, hosting boundary and TUI detail deduplicated
  to links; task-routing section moved out of Intentionally Deferred.
- protocol.md: descriptor 13; one accurate fixture statement (v32 current,
  v17-v31 decode-only); 29/30 deduplicated; 24/25 moved into the history.
- headless-contract.md: --allow-host in the synopsis; the shipped-gaps
  status table folds into the contract (Supervisor Boundary Notes; ADR
  0014/0022/0023 links follow).
- product.md: the real command list; scope restated as present.
- tools.md, theme.md, layout.md, providers.md: plan pointers, slice IDs and
  build checklists removed; layout states that Ultra shows one pane today.
- jev.md: fixed findings restated as behavior; the Direction section moves
  to plans/jev.md § Target design (the plan owns intent).

* docs(runbooks): correct runbooks, guide and contributor docs against the code

- xtask README: homebrew-formula, release --docs/--no-commit; perf workers
  are release-only on Linux, so perf-recording uses cargo run --release.
- local-dev/CONTRIBUTING: the real toolchain and what CI actually runs.
- release.md: version sample uses placeholders instead of stale numbers.
- jev runbook: approval_delegate values match config; limitations stated
  as behavior, without slice IDs; JV2's fixed headless limitation removed.
- Runbook H1s consistent; run-output-queries not Nix- or Linux-only.
- website/README defers to the website runbook; arms/perf READMEs fixed.
- guide: side questions sit with run behavior; mortal plan links replaced;
  cli --tui-qa-root PATH; README lists concepts.
- cli.rs help: qq run exit code 5; config explain lists every field.

* docs(root): link the docs cleanup slice to ENG-1016

* fix(guide): restore the concepts link to cli.md#qq-jev

The site's heading slugs drop the trailing hyphen GitHub would keep for
`qq jev …`; the original anchor was right and the website link check
failed on the changed one.
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