Skip to content

feat(config)!: remove legacy CLAUDE_ON_INCUS_* env-var config overrides#537

Merged
mensfeld merged 1 commit into
masterfrom
feat/remove-legacy-claude-env-vars
Jul 3, 2026
Merged

feat(config)!: remove legacy CLAUDE_ON_INCUS_* env-var config overrides#537
mensfeld merged 1 commit into
masterfrom
feat/remove-legacy-claude-env-vars

Conversation

@mensfeld

@mensfeld mensfeld commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Removes the last pre-rename relics: the CLAUDE_ON_INCUS_IMAGE, CLAUDE_ON_INCUS_PERSISTENT, CLAUDE_ON_INCUS_SESSIONS_DIR, and CLAUDE_ON_INCUS_STORAGE_DIR env vars, which dated to the initial claude-on-incus commit and silently overrode config (a stray CLAUDE_ON_INCUS_PERSISTENT=true in a shell profile could defeat explicit config — including the 0.10 persistence semantics).

Per the config-first model, they're removed entirely, no shim: the replacements are the config keys that already exist ([container] image / persistent, [paths] sessions_dir / storage_dir), settable globally, per project, or per profile.

  • loadFromEnv now handles only COI_LIMIT_* (the one remaining, deliberately kept env layer).
  • TestLoadFromEnv rewritten to cover the COI_LIMIT layer; no test references the legacy vars anymore.
  • README config-precedence section rewritten: defaults → user config ($COI_CONFIG) → project config → profile; config-shaped settings have no flags or env overrides.
  • claude-on-incus binary/symlink compatibility untouched (real users have old installs).

Gates: go build/vet/test, golangci-lint v2.12.2 (0 issues), gofmt — green. Rides the unreleased 0.10.0 breaking umbrella.

CLAUDE_ON_INCUS_IMAGE, _PERSISTENT, _SESSIONS_DIR, and _STORAGE_DIR were
first-commit relics from the pre-rename claude-on-incus era that silently
overrode config (a stray CLAUDE_ON_INCUS_PERSISTENT=true in a shell profile
could defeat explicit config). Removed entirely, no shim: config-shaped
settings live in config/profiles ([container] image / persistent,
[paths] sessions_dir / storage_dir). COI_LIMIT_* stays as the one remaining
env layer; the claude-on-incus binary symlink compatibility is untouched.
README config-precedence section rewritten to the config-first model.
@mensfeld mensfeld self-assigned this Jul 3, 2026
@mensfeld mensfeld merged commit eaa8c54 into master Jul 3, 2026
25 checks passed
@mensfeld mensfeld deleted the feat/remove-legacy-claude-env-vars branch July 3, 2026 10:33
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