You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode run fails with 'Session not found' (1.1.16) #8502
The opencode run command fails immediately with "Session not found" error. This affects all variations of the command.
Environment
opencode version: 1.1.16
macOS (Apple Silicon)
Installed via Homebrew
Reproduction Steps
# Basic usage
opencode run "Hello"# Output: Error: Session not found# With model
opencode run "Hello" -m anthropic/claude-haiku-4-5-20251001
# Output: Error: Session not found# With agent
opencode run "Hello" --agent build-haiku
# Output: Error: Session not found# From clean directorycd /tmp && opencode run "Hello"# Output: Error: Session not found# With explicit port
opencode run "Hello" --port 14567
# Output: Error: Session not found
Debug Logs
Running with --print-logs shows:
INFO ... service=file.watcher platform=darwin backend=fs-events watcher backend
ERROR ... service=server error= failed
Error: Session not found
Note the empty error message in service=server error= failed.
Expected Behavior
The command should start a new session and process the message.
Seeing a similar issue on 1.1.20 with opencode run - I believe its related to OPENCODE_SERVER_USERNAME / OPENCODE_SERVER_PASSWORD (#8179 might have incomplete coverage)
When OPENCODE_SERVER_USERNAME / OPENCODE_SERVER_PASSWORD is set:
~
λ opencode run --agent question-answer "tell me about yourself"
Error: Session not found
Full logs
~
λ opencode run --agent question-answer "tell me about yourself" --print-logs
INFO 2026-01-14T19:48:14 +282ms service=default version=1.1.20 args=["run","--agent","question-answer","tell me about yourself","--print-logs"] opencode
INFO 2026-01-14T19:48:14 +1ms service=default directory=/home/user creating instance
INFO 2026-01-14T19:48:14 +0ms service=project directory=/home/user fromDirectory
INFO 2026-01-14T19:48:14 +8ms service=default directory=/home/user bootstrapping
INFO 2026-01-14T19:48:14 +17ms service=config path=/home/user/.config/opencode/config.json loading
INFO 2026-01-14T19:48:14 +2ms service=config path=/home/user/.config/opencode/opencode.json loading
INFO 2026-01-14T19:48:14 +1ms service=config path=/home/user/.config/opencode/opencode.jsonc loading
INFO 2026-01-14T19:48:14 +7ms service=bun cmd=["/home/linuxbrew/.linuxbrew/Cellar/opencode/1.1.20/bin/opencode","add","@opencode-ai/plugin@1.1.20","--exact"] cwd=/home/user/.config/opencode running
INFO 2026-01-14T19:48:14 +9ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.20
[2.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-14T19:48:14 +0ms service=bun cmd=["/home/linuxbrew/.linuxbrew/Cellar/opencode/1.1.20/bin/opencode","install"] cwd=/home/user/.config/opencode running
INFO 2026-01-14T19:48:14 +9ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 16 installs across 17 packages (no changes) [3.00ms]
stderr= done
INFO 2026-01-14T19:48:14 +5ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO 2026-01-14T19:48:14 +0ms service=plugin path=opencode-copilot-auth@0.0.12 loading plugin
INFO 2026-01-14T19:48:14 +3ms service=plugin path=opencode-anthropic-auth@0.0.8 loading plugin
INFO 2026-01-14T19:48:14 +26ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.0 loading plugin
INFO 2026-01-14T19:48:14 +109ms service=bus type=* subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=session.updated subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=message.updated subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=message.part.updated subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=session.updated subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=message.updated subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=message.part.updated subscribing
INFO 2026-01-14T19:48:14 +0ms service=bus type=session.diff subscribing
INFO 2026-01-14T19:48:14 +0ms service=format init
INFO 2026-01-14T19:48:14 +0ms service=bus type=file.edited subscribing
INFO 2026-01-14T19:48:14 +1ms service=lsp all LSPs are disabled
INFO 2026-01-14T19:48:14 +1ms service=bus type=command.executed subscribing
ERROR 2026-01-14T19:48:14 +20ms service=server error= failed
Error: Session not found
When OPENCODE_SERVER_USERNAME / OPENCODE_SERVER_PASSWORD is unset:
~
λ opencode run --agent question-answer "tell me about yourself"
I am an AI assistant designed to answer your explicit questions thoroughly and efficiently. My main capabilities are:
- Researching information on the internet using up-to-date sources
- Providing detailed, accurate, and concise answers to a wide range of queries
- Breaking down complex tasks into manageable steps when appropriate
- Communicating clearly and professionally, focused only on what you ask
I do not possess personal experiences or emotions, but I am equipped to handle tasks that require comprehensive research and analysis, ensuring you get the most accurate and relevant information available. If you have a specific question or task, please specify, and I will assist you directly.
Full logs
~ 4s
λ opencode run --agent question-answer "tell me about yourself" --print-logs
INFO 2026-01-14T19:51:38 +250ms service=default version=1.1.20 args=["run","--agent","question-answer","tell me about yourself","--print-logs"] opencode
INFO 2026-01-14T19:51:38 +0ms service=default directory=/home/user creating instance
INFO 2026-01-14T19:51:38 +1ms service=project directory=/home/user fromDirectory
INFO 2026-01-14T19:51:38 +7ms service=default directory=/home/user bootstrapping
INFO 2026-01-14T19:51:38 +13ms service=config path=/home/user/.config/opencode/config.json loading
INFO 2026-01-14T19:51:38 +2ms service=config path=/home/user/.config/opencode/opencode.json loading
INFO 2026-01-14T19:51:38 +0ms service=config path=/home/user/.config/opencode/opencode.jsonc loading
INFO 2026-01-14T19:51:38 +7ms service=bun cmd=["/home/linuxbrew/.linuxbrew/Cellar/opencode/1.1.20/bin/opencode","add","@opencode-ai/plugin@1.1.20","--exact"] cwd=/home/user/.config/opencode running
INFO 2026-01-14T19:51:38 +8ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)
installed @opencode-ai/plugin@1.1.20
[3.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-14T19:51:38 +0ms service=bun cmd=["/home/linuxbrew/.linuxbrew/Cellar/opencode/1.1.20/bin/opencode","install"] cwd=/home/user/.config/opencode running
INFO 2026-01-14T19:51:38 +6ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 16 installs across 17 packages (no changes) [1.00ms]
stderr= done
INFO 2026-01-14T19:51:38 +4ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO 2026-01-14T19:51:38 +0ms service=plugin path=opencode-copilot-auth@0.0.12 loading plugin
INFO 2026-01-14T19:51:38 +2ms service=plugin path=opencode-anthropic-auth@0.0.8 loading plugin
INFO 2026-01-14T19:51:38 +14ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.0 loading plugin
INFO 2026-01-14T19:51:38 +93ms service=bus type=* subscribing
INFO 2026-01-14T19:51:38 +1ms service=bus type=session.updated subscribing
INFO 2026-01-14T19:51:38 +0ms service=bus type=message.updated subscribing
INFO 2026-01-14T19:51:38 +0ms service=bus type=message.part.updated subscribing
INFO 2026-01-14T19:51:38 +0ms service=bus type=session.updated subscribing
INFO 2026-01-14T19:51:38 +0ms service=bus type=message.updated subscribing
INFO 2026-01-14T19:51:38 +0ms service=bus type=message.part.updated subscribing
INFO 2026-01-14T19:51:38 +0ms service=bus type=session.diff subscribing
INFO 2026-01-14T19:51:38 +0ms service=format init
INFO 2026-01-14T19:51:38 +0ms service=bus type=file.edited subscribing
INFO 2026-01-14T19:51:38 +0ms service=lsp all LSPs are disabled
INFO 2026-01-14T19:51:38 +2ms service=bus type=command.executed subscribing
INFO 2026-01-14T19:51:38 +17ms service=server method=POST path=/session request
INFO 2026-01-14T19:51:38 +0ms service=server status=started method=POST path=/session request
INFO 2026-01-14T19:51:38 +3ms service=session id=ses_441efafa6ffeaRqwZCWfDzI1Kb slug=tidy-harbor version=1.1.20 projectID=global directory=/home/user title=New session - 2026-01-14T19:51:38.841Z time={"created":1768420298841,"updated":1768420298841} created
INFO 2026-01-14T19:51:38 +0ms service=bus type=session.created publishing
INFO 2026-01-14T19:51:38 +0ms service=bus type=session.updated publishing
INFO 2026-01-14T19:51:38 +2ms service=server status=completed duration=5 method=POST path=/session request
INFO 2026-01-14T19:51:38 +0ms service=server method=GET path=/config request
INFO 2026-01-14T19:51:38 +0ms service=server status=started method=GET path=/config request
INFO 2026-01-14T19:51:38 +1ms service=server status=completed duration=1 method=GET path=/config request
INFO 2026-01-14T19:51:38 +2ms service=server method=GET path=/event request
INFO 2026-01-14T19:51:38 +0ms service=server status=started method=GET path=/event request
INFO 2026-01-14T19:51:38 +1ms service=server event connected
INFO 2026-01-14T19:51:38 +1ms service=bus type=* subscribing
INFO 2026-01-14T19:51:38 +1ms service=server method=POST path=/session/ses_441efafa6ffeaRqwZCWfDzI1Kb/message request
INFO 2026-01-14T19:51:38 +0ms service=server status=started method=POST path=/session/ses_441efafa6ffeaRqwZCWfDzI1Kb/message request
INFO 2026-01-14T19:51:38 +2ms service=server status=completed duration=5 method=GET path=/event request
INFO 2026-01-14T19:51:38 +2ms service=server status=completed duration=4 method=POST path=/session/ses_441efafa6ffeaRqwZCWfDzI1Kb/message request
INFO 2026-01-14T19:51:38 +6ms service=bus type=message.updated publishing
INFO 2026-01-14T19:51:38 +7ms service=provider status=started state
INFO 2026-01-14T19:51:38 +3ms service=models.dev file={} refreshing
INFO 2026-01-14T19:51:38 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:38 +13ms service=provider init
INFO 2026-01-14T19:51:38 +0ms service=bus type=session.updated publishing
INFO 2026-01-14T19:51:38 +4ms service=bus type=session.status publishing
INFO 2026-01-14T19:51:38 +0ms service=session.prompt step=0 sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb loop
INFO 2026-01-14T19:51:38 +9ms service=provider providerID=morph found
INFO 2026-01-14T19:51:38 +0ms service=provider providerID=github-copilot found
INFO 2026-01-14T19:51:38 +0ms service=provider status=completed duration=30 state
INFO 2026-01-14T19:51:38 +2ms service=llm providerID=github-copilot modelID=gpt-5-mini sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb small=true agent=title stream
INFO 2026-01-14T19:51:38 +1ms service=provider status=started providerID=github-copilot getSDK
INFO 2026-01-14T19:51:38 +0ms service=provider providerID=github-copilot pkg=@ai-sdk/github-copilot using bundled provider
INFO 2026-01-14T19:51:38 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK
INFO 2026-01-14T19:51:38 +1ms service=bus type=message.updated publishing
INFO 2026-01-14T19:51:38 +0ms service=session.prompt status=started resolveTools
INFO 2026-01-14T19:51:38 +10ms service=tool.registry status=started invalid
INFO 2026-01-14T19:51:38 +1ms service=tool.registry status=started question
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started bash
INFO 2026-01-14T19:51:38 +0ms service=bash-tool shell=/usr/bin/zsh bash tool using shell
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started read
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started glob
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started grep
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started edit
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started write
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started task
INFO 2026-01-14T19:51:38 +1ms service=tool.registry status=started webfetch
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started todowrite
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started todoread
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=started skill
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=2 invalid
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 question
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 read
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 glob
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 grep
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 edit
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 write
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=0 webfetch
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=0 todowrite
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=0 todoread
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=1 bash
INFO 2026-01-14T19:51:38 +1ms service=permission permission=task pattern=general ruleset=[{"permission":"*","action":"allow","pattern":"*"},{"permission":"doom_loop","action":"ask","pattern":"*"},{"permission":"external_directory","pattern":"*","action":"ask"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output","action":"allow"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output/*","action":"allow"},{"permission":"question","action":"deny","pattern":"*"},{"permission":"plan_enter","action":"deny","pattern":"*"},{"permission":"plan_exit","action":"deny","pattern":"*"},{"permission":"read","pattern":"*","action":"allow"},{"permission":"read","pattern":"*.env","action":"ask"},{"permission":"read","pattern":"*.env.*","action":"ask"},{"permission":"read","pattern":"*.env.example","action":"allow"},{"permission":"*","action":"deny","pattern":"*"},{"permission":"todowrite","action":"allow","pattern":"*"},{"permission":"todoread","action":"allow","pattern":"*"},{"permission":"webfetch","action":"allow","pattern":"*"},{"permission":"question","action":"allow","pattern":"*"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output","action":"allow"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output/*","action":"allow"}] evaluate
INFO 2026-01-14T19:51:38 +0ms service=permission permission=task pattern=explore ruleset=[{"permission":"*","action":"allow","pattern":"*"},{"permission":"doom_loop","action":"ask","pattern":"*"},{"permission":"external_directory","pattern":"*","action":"ask"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output","action":"allow"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output/*","action":"allow"},{"permission":"question","action":"deny","pattern":"*"},{"permission":"plan_enter","action":"deny","pattern":"*"},{"permission":"plan_exit","action":"deny","pattern":"*"},{"permission":"read","pattern":"*","action":"allow"},{"permission":"read","pattern":"*.env","action":"ask"},{"permission":"read","pattern":"*.env.*","action":"ask"},{"permission":"read","pattern":"*.env.example","action":"allow"},{"permission":"*","action":"deny","pattern":"*"},{"permission":"todowrite","action":"allow","pattern":"*"},{"permission":"todoread","action":"allow","pattern":"*"},{"permission":"webfetch","action":"allow","pattern":"*"},{"permission":"question","action":"allow","pattern":"*"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output","action":"allow"},{"permission":"external_directory","pattern":"/home/user/.local/share/opencode/tool-output/*","action":"allow"}] evaluate
INFO 2026-01-14T19:51:38 +0ms service=tool.registry status=completed duration=2 task
INFO 2026-01-14T19:51:38 +6ms service=tool.registry status=completed duration=7 skill
INFO 2026-01-14T19:51:38 +3ms service=session.prompt status=completed duration=22 resolveTools
INFO 2026-01-14T19:51:38 +5ms service=session.processor process
INFO 2026-01-14T19:51:38 +0ms service=llm providerID=github-copilot modelID=gpt-4.1 sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb small=false agent=question-answer stream
INFO 2026-01-14T19:51:38 +0ms service=provider status=started providerID=github-copilot getSDK
INFO 2026-01-14T19:51:38 +0ms service=provider status=completed duration=0 providerID=github-copilot getSDK
INFO 2026-01-14T19:51:38 +2ms service=bus type=session.status publishing
INFO 2026-01-14T19:51:38 +9ms service=bus type=message.updated publishing
INFO 2026-01-14T19:51:38 +0ms service=llm providerID=github-copilot modelID=gpt-5-mini sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb small=true agent=title stream
INFO 2026-01-14T19:51:38 +0ms service=bus type=session.updated publishing
INFO 2026-01-14T19:51:38 +1ms service=bus type=session.diff publishing
INFO 2026-01-14T19:51:40 +1260ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +74ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +180ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +4ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +117ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +39ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +116ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +2ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +36ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +2ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +134ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:40 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +6ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +2ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +47ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +76ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +280ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +158ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +37ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +123ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +2ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +119ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:41 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +36ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +83ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +39ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +40ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +84ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +43ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +36ms service=bus type=session.updated publishing
INFO 2026-01-14T19:51:42 +6ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +71ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +40ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +42ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +76ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +37ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +42ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +81ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +40ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +37ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +81ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +1ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +38ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:42 +0ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:44 +1029ms service=bus type=message.part.updated publishing
I am an AI-powered expert question-answering agent designed to autonomously research and answer complex queries, especially those requiring up-to-date internet research. My functions include:
- Understanding and breaking down user questions thoroughly.
- Fetching and synthesizing current information from the web, including following links recursively for comprehensive answers.
- Providing structured, clear, and concise responses.
- Tracking tasks with a todo list when a question requires multiple steps.
- Verifying the accuracy and completeness of my answers rigorously before responding.
I do not have personal experiences or feelings, but my capabilities are focused on delivering precise, well-researched information and automating the research process for the user’s queries. If you ask me about any topic, I will systematically research and respond with the most accurate, current information possible.
INFO 2026-01-14T19:51:44 +3ms service=bus type=message.part.updated publishing
INFO 2026-01-14T19:51:44 +1ms service=bus type=message.updated publishing
INFO 2026-01-14T19:51:44 +2ms service=bus type=message.updated publishing
INFO 2026-01-14T19:51:44 +0ms service=bus type=session.status publishing
INFO 2026-01-14T19:51:44 +0ms service=session.prompt step=1 sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb loop
INFO 2026-01-14T19:51:44 +1ms service=bus type=message.updated publishing
INFO 2026-01-14T19:51:44 +0ms service=llm providerID=github-copilot modelID=gpt-5-mini sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb small=true agent=title stream
INFO 2026-01-14T19:51:44 +1ms service=bus type=session.updated publishing
INFO 2026-01-14T19:51:44 +0ms service=bus type=session.diff publishing
INFO 2026-01-14T19:51:44 +3ms service=session.prompt sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb exiting loop
INFO 2026-01-14T19:51:44 +0ms service=session.compaction pruning
INFO 2026-01-14T19:51:44 +1ms service=session.prompt sessionID=ses_441efafa6ffeaRqwZCWfDzI1Kb cancel
INFO 2026-01-14T19:51:44 +0ms service=bus type=session.status publishing
INFO 2026-01-14T19:51:44 +0ms service=bus type=session.idle publishing
INFO 2026-01-14T19:51:44 +1ms service=default directory=/home/user disposing instance
INFO 2026-01-14T19:51:44 +0ms service=state key=/home/user waiting for state disposal to complete
INFO 2026-01-14T19:51:44 +1ms service=state key=/home/user state disposal completed
Adding a data point — still reproducing on v1.2.10 (macOS, Apple Silicon, Homebrew).
We're building an SDK (AgentField) that dispatches tasks to coding agents (Claude Code, Codex, Gemini CLI, OpenCode) via a unified .harness() API. OpenCode is invoked as a subprocess using opencode run -m <model> <prompt> — the same pattern used in our other project af-swe.
What we tried (all fail identically):
Clean HOME directory (fresh db, no user config, no plugins)
Various --dir paths
With/without --format json
With/without -m <model>
Debug logs consistently show:
ERROR service=server error= failed
Error: Session not found
The internal server fails to initialize (empty error string), so sdk.session.create() returns undefined and the run command exits.
We have 10 unit tests mocked and passing for the OpenCode provider, but functional tests are blocked on this. Our PR is shipping with OpenCode marked as xfail for now.
Would love to see this fixed — opencode run is the primary integration point for headless/automation use cases.
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
opencode run#7784: Session list not updating w/opencode run- related toopencode runcommand functionality--agentoption when usingrunwith--attach#8094: Unable to use--agentoption when usingrunwith--attach- related error when usingopencode runwith specific optionsFeel free to ignore if none of these address your specific case.
rekram1-node commentedon Jan 14, 2026
Can u show me output of
which opencodeAre you sure you aren't accidentally passing a flag somewhere? Maybe in an alias or something?
I cant replicate
pep-sanwer commentedon Jan 14, 2026
Seeing a similar issue on
1.1.20withopencode run- I believe its related toOPENCODE_SERVER_USERNAME/OPENCODE_SERVER_PASSWORD(#8179 might have incomplete coverage)When
OPENCODE_SERVER_USERNAME/OPENCODE_SERVER_PASSWORDis set:Full logs
When
OPENCODE_SERVER_USERNAME/OPENCODE_SERVER_PASSWORDis unset:Full logs
TheEpTic commentedon Jan 24, 2026
Had a similar issue today, fixed it by unsetting the server password. Might be useful to give provide more info for basic stuff like auth failures.
Rohansguliani commentedon Feb 11, 2026
Made a fix for this: #13221
santoshkumarradha commentedon Mar 2, 2026
Adding a data point — still reproducing on v1.2.10 (macOS, Apple Silicon, Homebrew).
We're building an SDK (AgentField) that dispatches tasks to coding agents (Claude Code, Codex, Gemini CLI, OpenCode) via a unified
.harness()API. OpenCode is invoked as a subprocess usingopencode run -m <model> <prompt>— the same pattern used in our other project af-swe.What we tried (all fail identically):
--dirpaths--format json-m <model>Debug logs consistently show:
The internal server fails to initialize (empty error string), so
sdk.session.create()returnsundefinedand the run command exits.We have 10 unit tests mocked and passing for the OpenCode provider, but functional tests are blocked on this. Our PR is shipping with OpenCode marked as
xfailfor now.Would love to see this fixed —
opencode runis the primary integration point for headless/automation use cases.fix: opencode run works — 3 critical fixes
fix: opencode run works — 3 critical fixes (#433)
fix(hunqi): workaround opencode run 'Session not found' bug (#8502)
fix(hunqi): workaround opencode run 'Session not found' bug (#8502)
fix(hunqi): workaround opencode run 'Session not found' bug (#8502)
fix(hunqi): workaround opencode run 'Session not found' bug (#8502)
github-actions commentedon Jun 21, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.