Skip to content

fix(autopilot): forward goal approval overrides#53

Merged
ericmichael merged 1 commit into
mainfrom
fix-goal-autopilot-approval-bypass
Jun 16, 2026
Merged

fix(autopilot): forward goal approval overrides#53
ericmichael merged 1 commit into
mainfrom
fix-goal-autopilot-approval-bypass

Conversation

@ericmichael

Copy link
Copy Markdown
Owner

Summary

  • Forward Autopilot safeToolOverrides as safe_tool_overrides in the /goal server-call args.
  • Leave existing session.ensure variable persistence unchanged for workspace and additional instruction metadata.

Rationale

The launcher already builds the catch-all Autopilot bypass policy, but /goal must receive it as a top-level server-function argument so the server-side goal path can forward it to the run-starting API.

Tests

  • npx vitest run src/lib/supervisor-orchestrator.test.ts src/renderer/services/supervisor-bridge.test.ts

Summary:
- Forward Autopilot safe tool overrides in the renderer goal server
  call.
- Keep existing session.ensure variable behavior unchanged for other
  metadata.

Rationale:
- /goal runs must receive the same approval bypass policy as direct
  Autopilot start_run paths.
- Passing the policy as a goal argument lets the server function forward
  it to the actual run-starting path.

Tests:
- npx vitest run src/lib/supervisor-orchestrator.test.ts src/renderer/services/supervisor-bridge.test.ts

Co-authored-by: Omni Code <noreply@omnicode.dev>
@ericmichael ericmichael merged commit 0a6708a into main Jun 16, 2026
15 of 16 checks passed
@ericmichael ericmichael deleted the fix-goal-autopilot-approval-bypass branch June 16, 2026 20:00
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