Skip to content

feat(tui): implement prompt submit when used with a specific session command (--session, --continue, --fork) in the CLI#14442

Open
OpeOginni wants to merge 18 commits into
anomalyco:devfrom
OpeOginni:fix/cli-prompt-to-specific-session
Open

feat(tui): implement prompt submit when used with a specific session command (--session, --continue, --fork) in the CLI#14442
OpeOginni wants to merge 18 commits into
anomalyco:devfrom
OpeOginni:fix/cli-prompt-to-specific-session

Conversation

@OpeOginni

@OpeOginni OpeOginni commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #14349
Closes #8850
Closes #21829
Closes #29262

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Makes use of the same logic that adds prompts passed in through the CLI to create a new session. This just adds the logic to the session route so when users are navigated to a new session it checks if these agrs have been passed then submits the prompt to the session.

How did you verify your code works?

Tested on my local machine.

Screenshots / recordings

Screen.Recording.2026-02-20.at.14.30.29.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@EvanZhouDev

Copy link
Copy Markdown

Awesome! Appreciate the help 🫡

@OpeOginni OpeOginni changed the title feat(tui): implement onMount logic to handle prompts passed in cli to continue a session feat(tui): implement prompt settigng when used with a specific session command Apr 10, 2026
@OpeOginni

OpeOginni commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

Update!

After some updates to the codebase I edited this PR,

Now it fully makes use of the navigation and route data, but adds a new field autoSubmit, to make sure that only prompts added from the cli to specific sessions gets submitted, without affecting other functions that make use of initialPrompt to only flll the input box

@OpeOginni OpeOginni changed the title feat(tui): implement prompt settigng when used with a specific session command feat(tui): implement prompt submit when used with a specific session command (--session, --continue, --fork) in the CLI Apr 10, 2026
@OpeOginni
OpeOginni force-pushed the fix/cli-prompt-to-specific-session branch from 2ebc996 to 79d44b2 Compare May 2, 2026 11:33
@OpeOginni

Copy link
Copy Markdown
Contributor Author
Screen.Recording.2026-05-02.at.22.11.15.mov

Latest Vid Showing the PR works as should!

@rekram1-node

Copy link
Copy Markdown
Collaborator

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants