Skip to content

fix(cli): accept explicit harness session identity - #81

Merged
bfirestone merged 2 commits into
mainfrom
fix/codex-session-identity
Sep 6, 2026
Merged

bfirestone merged 2 commits into
mainfrom
fix/codex-session-identity

Conversation

@bfirestone

@bfirestone bfirestone commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Issue claims could fail or pick an inherited identity when harnesses supplied different session variables. Give Claude Code, Codex, and Pi integrations a provider-neutral boundary: arc update <id> --take --session-id "<current-id>", with ARC_SESSION_ID as the sole environment fallback. Reuse the existing flag and reject an explicitly empty value before mutation.

Add the same flag to arc prime. Explicit input takes precedence over validated hook input and then ARC_SESSION_ID; only validated hook input is persisted through CLAUDE_ENV_FILE. Update CLI help and workflow guidance with quoted, guarded harness examples. Registration stays separate in this base PR; #82 adds registration before claims.

Validation:

  • Regression coverage for all three explicitly bound harness identities, conflicting inherited values, missing/empty inputs, status overrides, and hook persistence boundaries.
  • TMPDIR=/var/tmp task test (race detection and coverage), independently rerun on 16731f9.
  • task lint, task build:quick, integration-suite compilation, and git diff --check.

/var/tmp avoids unrelated /tmp/.git metadata in repository-detection tests. Local Docker-backed integration tests were not run. GitHub CI passed unit tests, lint, integration tests, and Playwright on this commit. Harness skill and Pi adapter companion changes are coordinated separately.

Tracks arc-0d80.06cz65; registration follow-up #82 and Pi adapter SentioLabs/pi-nexus#15.

@bfirestone bfirestone changed the title fix(cli): resolve Codex session identity for issue claims fix(cli): accept explicit harness session identity Sep 6, 2026
@bfirestone
bfirestone marked this pull request as ready for review September 6, 2026 04:25
@bfirestone
bfirestone merged commit fe702f7 into main Sep 6, 2026
4 checks passed
@bfirestone
bfirestone deleted the fix/codex-session-identity branch September 6, 2026 04:26
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