gigacode: ! prefix execute command does not work

Open
#124 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
openapi, rust
Domain
api, backend

Research direction

Read server/packages/sandbox-agent/src/opencode_compat.rs, focusing on the oc_tui_execute_command handler, and compare its behavior with the OpenCode OpenAPI specification. Verify the endpoint accepts the command body and optional directory query parameter, then confirm that POST /opencode/tui/execute-command executes the requested shell command instead of returning true without execution.

Written by the indexing model from the issue text.

Description

bug gigacode

The ! prefix for executing shell commands in Gigacode does not work. The underlying POST /opencode/tui/execute-command endpoint is a stub that returns true without executing anything.

The handler at server/packages/sandbox-agent/src/opencode_compat.rs (oc_tui_execute_command) needs to be implemented. Per the OpenCode OpenAPI spec, it accepts { "command": string } in the request body and an optional ?directory= query parameter, and should execute the given shell command.

Dominant language
TypeScript
Stars
1.6k
Forks
125
PR merge metrics
No merged PRs in 30d

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.

More from rivet-dev/sandbox-agent

All issues in rivet-dev/sandbox-agent

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.