Repository navigation
fix(cli): accept explicit harness session identity - #81
Merged
Merged
Conversation
bfirestone
marked this pull request as ready for review
September 6, 2026 04:25
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.
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>", withARC_SESSION_IDas 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 thenARC_SESSION_ID; only validated hook input is persisted throughCLAUDE_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:
TMPDIR=/var/tmp task test(race detection and coverage), independently rerun on16731f9.task lint,task build:quick, integration-suite compilation, andgit diff --check./var/tmpavoids unrelated/tmp/.gitmetadata 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.