Skip to content

fix(tui): warn when launch directory falls back - #51275

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
warn-location-fallback
Open

opencode-agent[bot] wants to merge 1 commit into
v2from
warn-location-fallback

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

What

  • Show a startup warning in the TUI when resolving the launch directory fails and OpenCode uses the server default.
  • Keep the existing fallback behavior for remote or unavailable directories.

Why

A missing {file:...} reference in a project MCP config makes the location-scoped request fail. The server currently returns an empty 500 for both that failure and a missing directory, so the client cannot safely distinguish them. This PR makes the fallback visible without mislabeling its cause; structured server errors can be discussed separately.

Checks

  • bun test test/app-lifecycle.test.tsx (35 passed, including 44-column and 100-column fallback coverage)
  • bun typecheck in packages/tui
  • Prettier, scoped oxlint, git diff --check

Requested by: @rekram1-node (Aiden via Slack)

This branch has not been deployed

No deployments
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