Skip to content

feat(tui): improve session fork UX - #12572

Closed
d-init-d wants to merge 1 commit into
anomalyco:devfrom
d-init-d:feat/tui-fork-ux
Closed

d-init-d wants to merge 1 commit into
anomalyco:devfrom
d-init-d:feat/tui-fork-ux

Conversation

@d-init-d

@d-init-d d-init-d commented Feb 7, 2026 •

Copy link
Copy Markdown

What

  • Add a visible "Fork" action in the session header.
  • Add a "Fork current session" option to the fork dialog.
  • Improve feedback/toasts and prevent double-submits when forking.

Why

Forking currently feels like it might be switching sessions rather than creating a new one, and the quickest/common intent (fork current state) requires selecting a specific message. This makes discovery and confidence worse.

How

  • Header: provide a direct entrypoint for forking via session.fork.
  • Fork dialog: add a synthetic "current session" option with a unique value to avoid collisions.
  • Clear dialogs before awaiting async fork calls to avoid double-submits.

Tests

  • cd packages/opencode && bun run typecheck
  • (sanity) cd packages/opencode && bun test test/keybind.test.ts

Closes #12580

@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

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

Based on my search, I found one potentially related PR:

PR #12079: feat(tui): duplicate slash command using existing fork functionality
#12079

This PR is related because it deals with forking functionality in the TUI, specifically duplicating slash commands using fork. Since the current PR (#12572) is improving the session fork UX overall, this PR's interaction with fork functionality may have overlaps or could benefit from the improvements being made.

All other results are either the current PR itself (#12572) or unrelated feature PRs about sessions, subagents, or other TUI improvements.

@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 8, 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: make session fork more discoverable (and allow forking current session)

1 participant