Skip to content

feat(tui): resume recent sessions from the launch surface - #580

Merged
emal-avala merged 1 commit into
mainfrom
feat/launch-interaction
Jul 29, 2026
Merged

feat(tui): resume recent sessions from the launch surface#580
emal-avala merged 1 commit into
mainfrom
feat/launch-interaction

Conversation

@emal-avala

Copy link
Copy Markdown
Member

Summary

Test plan

  • cargo test -p agent-code --bin agent launch
  • cargo clippy -p agent-code --all-targets -- -D warnings
  • cargo fmt --all
  • Unit tests: selection wrap, accept starts resume, same-session no-op
  • Frame snapshot refreshed for selected-row chrome

Depends on #579.

@emal-avala

Copy link
Copy Markdown
Member Author

Part of #557 (Phase 3 keyboard — ↑/↓ + Enter resume). Depends on #579.

@emal-avala

Copy link
Copy Markdown
Member 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: 6bea93666a

ℹ️ 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 on lines +419 to +420
let checks =
agent_code_lib::services::diagnostics::run_local(cwd_path, &cfg_snapshot).await;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Move startup diagnostics behind the first frame

When a local probe stalls—for example, git or df against an unavailable network-mounted working directory—this await prevents terminal setup and the event loop from starting. run_local still launches several unbounded subprocesses sequentially, so excluding HTTP requests does not guarantee a responsive first frame, and Ctrl+C cannot be processed by the TUI while startup is stuck. Run these probes after the initial draw with cancellation, or apply timeouts.

AGENTS.md reference: AGENTS.md:L125-L125

Useful? React with 👍 / 👎.

Comment on lines +419 to +420
let checks =
agent_code_lib::services::diagnostics::run_local(cwd_path, &cfg_snapshot).await;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid Unix-only tool discovery on Windows

On native Windows, where this CLI and TUI are supported (docs/src/faq.md:24-30), run_local invokes which for every required tool. Since which is not normally available from PowerShell or Command Prompt, each spawn fails and is converted into a failed check even when git and rg are installed; the new launch surface then displays the first false failure (typically “git not found”) on every startup. Use platform-aware executable discovery such as where.exe on Windows before exposing these checks on the default launch path.

Useful? React with 👍 / 👎.

Phase 3 of #557 (keyboard slice): ↑/↓ highlights a recent session on
the launch surface and Enter starts the same resume path as the
session picker. Same-session selection is a no-op; typing still
dismisses the surface. Mouse hit-testing and shimmer remain open.
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