feat(tmuxx): per-provider login sessions lab-login-<id> with prefix-keyed exclusions (ADR-0034) #82
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab!82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/77"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #77
What
tmuxx.LoginSession(the single fixedlab-loginname) is gone.internal/tmuxxnow has one prefix constLoginSessionPrefix = "lab-login", a name derivationLoginSessionName(providerID)→lab-login-<providerID>, and one predicateIsLoginSession(name)— derivation and predicate share the const, so they cannot drift.instance.LiveInstanceCount,LiveInstances), stop-all (instance.StopAll), branch ownership (reconcile.ownedBranches), discard (reconcile.killSessionOnBranch), and the zombie drain (afk.drainZombies). No equality comparison against a login-session constant remains (grep-clean).lab-login-claude-code); no other login-flow behavior changes.lab-loginstill satisfies the predicate, so a login session left over from an older binary stays excluded.Tests
internal/tmuxx/login_test.go: derivation + predicate table tests (legacy name true;lab-loginx/xlab-loginfalse).Verification
go build ./...,go vet ./...,go test ./...(full suite),gofmt -lclean, and the flake'sgolangci-lintcheck (nix build .#checks.x86_64-linux.golangci-lint) all green.🤖 Generated with Claude Code
https://claude.ai/code/session_01M94su7zDQEqezGWFqcqzVs