Skip to content

fix(tui): refresh directory after move [v2] - #44829

Closed
timrichardson wants to merge 1 commit into
anomalyco:v2from
timrichardson:move-directory-refresh
Closed

timrichardson wants to merge 1 commit into
anomalyco:v2from
timrichardson:move-directory-refresh

Conversation

@timrichardson

@timrichardson timrichardson commented Aug 25, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #43938

Basically a one line fix. PR is for v2, issue is raised against v1.

Type of change

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

What does this PR do?

When /move selects an existing worktree before a new session has any turns, update the TUI location context immediately. The directory indicator now shows the selected worktree as soon as the move dialog closes instead of waiting for the first prompt to create the session.

Adds a regression test that selects an existing worktree from the real move dialog, verifies the location display updates, and confirms no session needs to be created.

How did you verify your code works?

  • bun test test/cli/tui/prompt-move.test.tsx in packages/tui
  • bun test in packages/tui (763 pass, 5 skip)
  • bun typecheck in packages/tui
  • Prettier check for changed files
  • git diff --check

Screenshots / recordings

N/A — behavior-only refresh fix.

Checklist

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

@github-actions

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

Copy link
Copy Markdown
Contributor

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

No duplicate PRs found.

@timrichardson timrichardson changed the title fix(tui): refresh directory after move fix(tui): refresh directory after move [v2] Aug 25, 2026
@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

Development

Successfully merging this pull request may close these issues.

1 participant