Skip to content

Restore --networking flag on conversation create/update - #99

Open
timanglade wants to merge 1 commit into
exoharness:add-opencode-harnessfrom
timanglade:add-opencode-harness
Open

Restore --networking flag on conversation create/update#99
timanglade wants to merge 1 commit into
exoharness:add-opencode-harnessfrom
timanglade:add-opencode-harness

Conversation

@timanglade

Copy link
Copy Markdown
Contributor

The --networking flag was accidentally dropped from conversation-level CLI commands when sandbox settings were refactored into ConversationSandboxRuntimeArgs (commit 3f206d6, PR #25). The flag remained on agent create/update, and the underlying enable_networking field stayed in the exoharness API, but conversation create/update lost their CLI surface for controlling it.

This restores --networking on both conversation create and conversation update by:

  • Adding networking to ConversationSandboxRuntimeArgs
  • Adding --clear-networking to ConversationSandboxRuntimeUpdateArgs
  • Adding enable_networking: Option to ConversationConfig and CreateConversationRequest
  • Wiring the conversation-level override through conversation_sandbox and harness_tool so it falls back to the agent default when unset

Also updates agent-harness-e2e.ts to pass --networking at conversation create time (instead of a separate conversation update call) so the sandbox is created with the correct networking policy from the start.

Finally, injects provider-specific API key env vars (e.g. FIREWORKS_API_KEY) into the opencode sandbox env alongside OPENCODE_API_KEY, so the opencode server can resolve non-default providers.

The --networking flag was accidentally dropped from conversation-level
CLI commands when sandbox settings were refactored into
ConversationSandboxRuntimeArgs (commit 3f206d6, PR exoharness#25). The flag
remained on agent create/update, and the underlying enable_networking
field stayed in the exoharness API, but conversation create/update
lost their CLI surface for controlling it.

This restores --networking on both conversation create and conversation
update by:
- Adding networking to ConversationSandboxRuntimeArgs
- Adding --clear-networking to ConversationSandboxRuntimeUpdateArgs
- Adding enable_networking: Option<bool> to ConversationConfig and
  CreateConversationRequest
- Wiring the conversation-level override through conversation_sandbox
  and harness_tool so it falls back to the agent default when unset

Also updates agent-harness-e2e.ts to pass --networking at conversation
create time (instead of a separate conversation update call) so the
sandbox is created with the correct networking policy from the start.

Finally, injects provider-specific API key env vars (e.g.
FIREWORKS_API_KEY) into the opencode sandbox env alongside
OPENCODE_API_KEY, so the opencode server can resolve non-default
providers.
@akrentsel
akrentsel force-pushed the add-opencode-harness branch 2 times, most recently from 39faf3e to 8d412db Compare July 1, 2026 23:23
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.

1 participant