Skip to content

feat(opencode): add remote TUI directory switching#18121

Open
Yeamika wants to merge 1 commit intoanomalyco:devfrom
Yeamika:yeamika/changedirectory-tui
Open

feat(opencode): add remote TUI directory switching#18121
Yeamika wants to merge 1 commit intoanomalyco:devfrom
Yeamika:yeamika/changedirectory-tui

Conversation

@Yeamika
Copy link

@Yeamika Yeamika commented Mar 18, 2026

Issue for this PR

Closes #18119

Type of change

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

What does this PR do?

This adds a small /changedirectory command for the remote TUI flow.

When the TUI is attached to a remote server, it should not stay tied to the startup cwd forever, otherwise switching remote project context is awkward. This change lets the TUI reload itself against a new remote directory, clears the active workspace selection, and returns to the home screen.

How did you verify your code works?

I tested it by attaching to a remote OpenCode server, running /changedirectory, entering a different remote directory, and confirming the TUI returned to home and reloaded against the new path.

Screenshots / recordings

屏幕截图 2026-03-19 020712

Checklist

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

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 18, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[FEATURE]: runtime directory switching in remote TUI

2 participants