Skip to content

fix: default process tool action to 'start' when only command is provided - #850

Merged
avoidwork merged 1 commit into
mainfrom
fix/process-tool-action-default
Aug 23, 2026
Merged

fix: default process tool action to 'start' when only command is provided#850
avoidwork merged 1 commit into
mainfrom
fix/process-tool-action-default

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Commit: fix: default process tool action to 'start' when only command is provided

Changed files: src/tools/process.js

Description

The process tool's Zod schema required an explicit action field, but in practice the agent almost always sends only command — which implies start. This caused schema validation errors whenever the agent omitted the action. Added .default("start") to the action field so that providing only a command works as expected.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactor (no functional changes)
  • Performance improvement
  • CI / build / tooling

Testing

All 1192 tests pass. The change is a single .default("start") addition to the Zod schema — no logic change, just a more permissive input.

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

@avoidwork avoidwork added the bug Something isn't working label Aug 23, 2026
@avoidwork avoidwork self-assigned this Aug 23, 2026
@avoidwork
avoidwork enabled auto-merge (squash) August 23, 2026 14:37
@avoidwork
avoidwork merged commit fe74d13 into main Aug 23, 2026
3 checks passed
@avoidwork
avoidwork deleted the fix/process-tool-action-default branch August 23, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant