Skip to content

feat(agent): add skip_onboarding to Agent trait for Claude#50

Merged
feloy merged 1 commit into
mainfrom
agent-onboarding
Jun 2, 2026
Merged

feat(agent): add skip_onboarding to Agent trait for Claude#50
feloy merged 1 commit into
mainfrom
agent-onboarding

Conversation

@feloy

@feloy feloy commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Adds a skip_onboarding method to the Agent trait that accepts a map of filename → file content and returns the modified map. The default implementation is a no-op (used by OpenCode). ClaudeAgent overrides it to set hasCompletedOnboarding: true and hasTrustDialogAccepted: true in .claude.json, preventing the interactive onboarding dialog from appearing on first launch.

stage_agent_settings is refactored to call skip_onboarding so that Claude always produces a .claude.json even when no user-provided settings directory exists, and merges with any existing .claude.json content when one is provided.

Adds integration tests and README documentation.

Closes #49

Adds a `skip_onboarding` method to the `Agent` trait that accepts a
map of filename → file content and returns the modified map. The
default implementation is a no-op (used by OpenCode). ClaudeAgent
overrides it to set `hasCompletedOnboarding: true` and
`hasTrustDialogAccepted: true` in `.claude.json`, preventing the
interactive onboarding dialog from appearing on first launch.

`stage_agent_settings` is refactored to call `skip_onboarding` so
that Claude always produces a `.claude.json` even when no
user-provided settings directory exists, and merges with any
existing `.claude.json` content when one is provided.

Adds integration tests and README documentation.

Closes #49

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Philippe Martin <phmartin@redhat.com>
@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.90164% with 5 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@c65dda4). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/main.rs 91.93% 5 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #50   +/-   ##
=======================================
  Coverage        ?   84.07%           
=======================================
  Files           ?       16           
  Lines           ?     1997           
  Branches        ?        0           
=======================================
  Hits            ?     1679           
  Misses          ?      318           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@feloy feloy merged commit 1c02fbc into main Jun 2, 2026
6 checks passed
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.

skip agent onboarding

1 participant