anomalyco / anomalyco/opencode

V1 follow-up prompts are sent to the project directory instead of the session directory

Open
#48,529 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Open a session whose directory differs from the current project directory (e.g. a worktree session on a v1 server).
  2. Send a follow-up prompt.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.