Repository navigation
fix(agents): pre-dismiss Claude Code auto-mode default nudge - #166
Merged
Merged
Conversation
Claude Code 2.1.x offers "Make auto mode your default permission mode?" whenever settings.json pins a defaultMode other than "auto" and no project/local/policy settings override it — exactly the shape of every container session we generate (defaultMode is always bypassPermissions, because a headless sandbox has nobody to answer a permission prompt). In an interactive session the nudge takes over the first keystrokes. hasSeenAutoDefaultNudge in ~/.claude.json is the flag Claude Code itself writes once the nudge has been answered, and it is checked before the defaultMode comparison, so setting it up front keeps bypassPermissions without the dialog. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
NOX73
pushed a commit
that referenced
this pull request
Oct 21, 2026
* feat(feature-flags): add registry, ENV source, resolver and Feature facade First of the seven feature flag tasks (#166, design in #164). The registry ships empty, so nothing changes in behaviour. Signed-off-by: Aixle-Developer-Agent <[email protected]> * fix(feature-flags): isolate tests from FEATURE_* ENV, report unknown keys once - config/settings/test.yml empties feature_flags.env, and the per-test setup resets the ENV layer with the store, so a FEATURE_* value in the shell, CI or .env never reaches a test; stub_feature_env is the only way to lock one. - Feature reports an undeclared key to Sentry once per key per process instead of on every call; it still reads as off every time. Signed-off-by: Aixle-Developer-Agent <[email protected]> * test(feature-flags): check stub_feature_env leaves ENV unchanged, whatever it holds Signed-off-by: Aixle-Developer-Agent <[email protected]> --------- Signed-off-by: Aixle-Developer-Agent <[email protected]> Co-authored-by: Aixle-Developer-Agent <[email protected]>
This was referenced Oct 21, 2026
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
Interactive container sessions on recent Claude Code (2.1.2xx) open with a dialog instead of a prompt:
The gate for that nudge, from the shipped CLI bundle:
Every session we generate matches it exactly:
generate_settingspinspermissions.defaultMode = "bypassPermissions"(a headless sandbox has nobody toanswer a permission prompt, see
PERMISSION_DEFAULT_MODE), and we write noproject/local/policy settings that would override it.
Fix
generate_confignow writeshasSeenAutoDefaultNudge: trueinto~/.claude.json.That is the flag Claude Code itself writes once the nudge has been answered, and it
is checked before the
defaultModecomparison, sobypassPermissionsstays and thedialog never renders. Same shape as the existing
effortCalloutV2DismissedandhasCompletedOnboardingentries.Testing
bin/rails test test/services/agents/claude_code_adapter_test.rb— 118 runs, 345 assertions, 0 failuresmake check_all— brakeman / eslint / fe-test / rubocop / system-test / typescript / vite-build all OK.rails-testreported 9 errors, allTemporalio::Internal::Bridge::Error: Failed starting server: error sending request for url (https://temporal.download/temporal-test-server/...)in theWorkflows::*WorkflowTestfiles — the local container could not reach temporal.download.Unrelated to this change; CI has network for that download.
🤖 Generated with Claude Code