Skip to content

feat(tui): remove startup and mention waits (B2) - #518

Merged
lg2m merged 6 commits into
mainfrom
feat/eng-1106-b2
Oct 31, 2026
Merged

lg2m merged 6 commits into
mainfrom
feat/eng-1106-b2

Conversation

@lg2m

@lg2m lg2m commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Change

Implement B2 from the v0.1.11 plan (ENG-1106): paint and accept input before configuration/server startup, retain early prompts independently of newer drafts, run mention resolution and completion off-loop with stale-result checks, and prefetch cold session history after a 100 ms highlight.

Bootstrap returns the list and recent root bodies in one snapshot, with model discovery in parallel. This includes a server-side snapshot-default change, but no protocol/store change or new dependency. Empty attached workspaces still create a session after model validation and require a second snapshot.

Verification

  • Regression tests cover startup draft retention and queued prompts, completion ABA/stale focus, prefetch timing/cancellation, and failed queued client requests. Snapshot prewarm regression failed before the change and passed after it.
  • Real terminal loop tests exercise delayed startup and input during background work.
  • Real binary with loopback fake provider, debug build, 5 startup samples: first frame 3.43 ms median / 3.79 ms p95; warm-daemon transcript 101.09 / 105.56 ms. Eight-stream keystroke p99 0.90 ms; cold switch median 14.08 ms.
  • Interleaved optimized render binaries, three pairs pinned to CPU 2, 2,000 samples/scene: median changes −1.2% to +3.2% (all under 5%). Steady 21.7→21.8 µs, 32 KB stream 443.2→437.8 µs, eight-stream typing 40.3→40.9 µs. B1 recorded 21.5, 440.6 and 40.3 µs respectively.
  • Full cargo xtask check run before pushing; CI provides the current-head receipt.

Known impact

No visual goldens changed. Real-binary numbers use a debug build and tiny transcripts, unlike B1's release build; they demonstrate targets, not a direct speed-up claim. Warm switch 13.74 ms is observed, but the recorder cannot establish the one-frame target. Rail click/highlight does not exist yet (section A/C); prefetch covers the current session picker/navigator. Raw local performance evidence is under target/qq-perf/v0.1.11/b2 and summarized in the plan.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-31T22:26:38.239709Z 9fea995 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

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 31, 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: 19de6dd77c

ℹ️ 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/terminal.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
Comment thread crates/qq-client/src/interactive.rs Resolved
@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 31, 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: d7a682d6f0

ℹ️ 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/terminal.rs Resolved
Comment thread crates/qq-client/src/interactive.rs Resolved
Comment thread crates/qq-tui/src/app.rs Resolved
@lg2m
lg2m merged commit 56b9312 into main Oct 31, 2026
11 checks passed
@lg2m
lg2m deleted the feat/eng-1106-b2 branch October 31, 2026 22:30
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