Skip to content

fix(executor): support attached-mode opencode prompt flow#2421

Closed
myagizmaktav wants to merge 2 commits intoqf-studio:mainfrom
myagizmaktav:upstream-opencode-directory-header
Closed

fix(executor): support attached-mode opencode prompt flow#2421
myagizmaktav wants to merge 2 commits intoqf-studio:mainfrom
myagizmaktav:upstream-opencode-directory-header

Conversation

@myagizmaktav
Copy link
Copy Markdown
Contributor

@myagizmaktav myagizmaktav commented Apr 26, 2026

Summary

  • send attached-mode directory through query params and headers during session create, prompt, event subscribe, and permission replies
  • support modern OpenCode attached-mode execution via prompt_async + /event with fallback to legacy /message flow
  • parse both wrapped and bare OpenCode event payloads and auto-approve matching external directory permissions

Verification

  • go test ./internal/executor -run TestOpenCodeBackend -count=1
  • go test ./internal/executor -count=1
  • manual local pilot task run advanced past Initializing opencode... and completed

Closes #2415
Also addresses #2407 for attached-mode servers on OpenCode 1.4.6+

@myagizmaktav myagizmaktav changed the title fix(executor): send attached OpenCode directory header fix(executor): support attached-mode opencode prompt flow Apr 27, 2026
@myagizmaktav myagizmaktav deleted the upstream-opencode-directory-header branch April 27, 2026 10:02
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.

fix(executor): send X-OpenCode-Directory header in attached mode

1 participant