Skip to content

fix(tui): submit prompt when resuming session#37539

Closed
pacaplan wants to merge 1 commit into
anomalyco:devfrom
pacaplan:resume-prompt
Closed

fix(tui): submit prompt when resuming session#37539
pacaplan wants to merge 1 commit into
anomalyco:devfrom
pacaplan:resume-prompt

Conversation

@pacaplan

Copy link
Copy Markdown

Fixes #37536

Summary

  • carry the startup prompt into session routes selected by --session, --continue, or their fork variants
  • wait for the prompt ref, model state, and resumed-session synchronization before submitting
  • share an exactly-once startup prompt controller between fresh and resumed TUI routes
  • preserve user edits instead of auto-submitting changed prompt text

Testing

  • bun test test/cli/tui/startup-prompt.test.ts
  • bun run typecheck in packages/tui
  • bun test --timeout 30000 --only-failures in packages/tui (193 passed, 1 skipped)
  • bun run lint

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

This looks like it could be related functionality or a historical attempt at solving the same problem. You may want to check if #14442 was closed/not merged and whether this PR (#37539) is a fresh attempt or improvement on that work.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jul 17, 2026
@github-actions github-actions Bot closed this Jul 17, 2026
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.

TUI: --prompt is dropped when resuming with --session

1 participant