anomalyco / anomalyco/opencode
V1 follow-up prompts are sent to the project directory instead of the session directory
Open
@Hona is already working on this.
Since Sep 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
V1 follow-up prompts are sent to the wrong workspace directory.
In the V1 protocol the follow-up prompt path (sendFollowupDraft in the app) calls input.api.prompt without the session's directory. The directory-scoped API client only knows the project directory, so a follow-up prompt for a session that lives in another worktree or directory is routed to the wrong location instead of the session's own directory.
Plugins
n/a
OpenCode version
latest dev
Steps to reproduce
- Open a session whose directory differs from the current project directory (e.g. a worktree session on a
v1server). - Send a follow-up prompt.
- The prompt is delivered against the project directory rather than the session's directory.
Screenshot and/or share link
n/a
Operating System
n/a (all)
Terminal
n/a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.