Skip to content

fix: forward global --non-interactive/--silent to all commands#63

Open
MaxwellCalkin wants to merge 3 commits intosensay-io:mainfrom
MaxwellCalkin:fix/pass-global-options-to-all-commands
Open

fix: forward global --non-interactive/--silent to all commands#63
MaxwellCalkin wants to merge 3 commits intosensay-io:mainfrom
MaxwellCalkin:fix/pass-global-options-to-all-commands

Conversation

@MaxwellCalkin
Copy link
Copy Markdown

Summary

  • conversations command: --non-interactive was not forwarded from global options, so the interactive mentions prompt (line 127) could never be skipped in CI/script mode
  • retrain-failed command: global --silent was not merged with the local -s flag, and --non-interactive was not forwarded at all

Test plan

  • Run sensay conversations -r <id> --non-interactive — verify no interactive prompt appears
  • Run sensay retrain-failed --non-interactive — verify it runs without prompts
  • Run sensay --silent retrain-failed — verify the global silent flag takes effect

🤖 Generated with Claude Code

MaxwellCalkin and others added 3 commits March 7, 2026 15:33
Creates a reusable OptionResolver class that handles the standard
configuration priority chain (CLI → ENV → Interactive → Project → User)
as specified in CLAUDE.md. Adds global --silent/-s option that skips
interactive prompts and uses config defaults.

Refactors chat and simple-organization-setup commands to use
OptionResolver, eliminating duplicated config resolution logic.

Closes sensay-io#2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…roject config

When --save is passed, options resolved via interactive prompts that aren't
already in the project config are saved to sensay.config.json after resolution.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
conversations command: --non-interactive was not forwarded, so the
interactive mentions prompt could not be skipped in CI/script mode.

retrain-failed command: global --silent was not merged with the local
-s flag, and --non-interactive was not forwarded at all.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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