Repository navigation
Honor configuration.options.format in local runs - #386
Merged
Merged
Conversation
Local runs always passed options as `-name value`, ignoring the
manifest's `configuration.options.format`. Apps that declare a format
(e.g. `["--{{name}}", "{{value}}"]`) now receive options in that form,
with empty resulting arguments omitted. Without a format, the existing
`-name value` behavior is unchanged.
Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The manifest supports
configuration.options.formatto define how options become command-line arguments (see the manifest docs). The SDK parses this field, but the local executor ignored it and always passed options as-name value(options_argsinnextmv/local/executor.py).As a result, an app that declares
format: ["--{{name}}", "{{value}}"]gets--name valueon Cloud but-name valuelocally. Bring-your-own models with a fixed argument style fail locally unless their parser accepts every style.Change
options_argstakes an optionalformat. Each template has{{name}}and{{value}}substituted, and empty resulting arguments are omitted, as the docs describe. A boolean flag with an empty value becomes just--verbose.configuration.options.formattooptions_args.formatset, behavior is unchanged (-name value). I didn't switch the default to the platform's documented-{{name}}={{value}}, because that could break existing non-Python apps that only accept-name value. This can be revisited separately.Testing
name=value, empty-value omission and empty/missing format cases.format: ["--{{name}}", "{{value}}"]and options{"time_limit": "30", "verbose": ""}. The app received["--time_limit", "30", "--verbose"]. With the format removed, it received["-time_limit", "30", "-verbose", ""], the same as before this change.🤖 Generated with Claude Code