Skip to content

openclaw sync: partner-controllable primary-model + custom config dir (env)#93

Closed
rjckkkkk wants to merge 1 commit into
developfrom
feat/openclaw-sync-controls
Closed

openclaw sync: partner-controllable primary-model + custom config dir (env)#93
rjckkkkk wants to merge 1 commit into
developfrom
feat/openclaw-sync-controls

Conversation

@rjckkkkk

Copy link
Copy Markdown
Collaborator

What

Two product-level env controls so a partner integrating AIMA owns OpenClaw behavior without code changes on their side. Both honor CLI aima openclaw sync AND the serve auto-sync loop; defaults preserve previous behavior.

  • AIMA_OPENCLAW_SET_DEFAULT=false — register the AIMA provider + models but do NOT set OpenClaw's primary/default chat model (leave the user's current primary untouched). Unset = previous behavior. Threaded Deps.SetDefaultModel *boolSyncResult.SkipDefaultModelmergeChatModelDefault early-returns, preserving prior ownership record.
  • AIMA_OPENCLAW_CONFIG=<path>/openclaw.json — write the config to a custom dir (e.g. a partner using .byClaw). Skills, extensions and managed-state all follow filepath.Dir(ConfigPath), so the whole set relocates. Purely AIMA-side, independent of the OpenClaw/byClaw product's own layout.

Test

  • TestMergeSkipDefaultModel (provider still registered, primary left untouched); go vet clean.
  • Verified on the Strix Halo rig: SET_DEFAULT=false → provider written, primary empty; default → primary set; AIMA_OPENCLAW_CONFIG=...\.byClaw\openclaw.json → config + skills land under .byClaw.

Shipped to partners on the amd395-win handoff branch; opening here for review (not for immediate develop merge).

🤖 Generated with Claude Code

… (env)

Two product-level controls so a partner integrating AIMA owns OpenClaw behavior
without code changes on their side (both honor CLI sync AND the serve auto-sync loop):

- AIMA_OPENCLAW_SET_DEFAULT=false — register the AIMA provider + models but do NOT
  set OpenClaw's primary/default chat model (leave the user's current primary alone).
  Unset = previous behavior (AIMA sets it). Threaded as Deps.SetDefaultModel *bool →
  SyncResult.SkipDefaultModel → mergeChatModelDefault early-returns (preserving prior
  ownership record so toggling back on works).
- AIMA_OPENCLAW_CONFIG=<path>/openclaw.json — write to a custom config dir (e.g. a
  partner using .byClaw instead of .openclaw). Skills, extensions and managed-state
  all follow filepath.Dir(ConfigPath), so the whole set relocates. This is purely
  AIMA-side and independent of the OpenClaw/byClaw product's own layout.

Verified on the Strix Halo rig: SET_DEFAULT=false → provider written, primary empty;
default → primary set; custom config dir → config+skills land under .byClaw.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@rjckkkkk

Copy link
Copy Markdown
Collaborator Author

Superseded by the consolidated baiying-integration-2026-06 PR (whole 2026-06 stack).

@rjckkkkk rjckkkkk closed this Jun 23, 2026
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