Context
PR #17 delivered the SSH notification bridge (v0.5.0 clipboard notification + v0.6.0 notification bridge). Deep audit identified 5 IMPORTANT items deferred as follow-up to keep the feature PR focused.
Checklist
I1: Extract subcommands from main.go (1624 lines → ~800)
I2: Dedup map eviction
I3: Improve /notify auth error messages
I4: Improve test coverage
I5: CmuxDeliverer context cancellation
Related
Context
PR #17 delivered the SSH notification bridge (v0.5.0 clipboard notification + v0.6.0 notification bridge). Deep audit identified 5 IMPORTANT items deferred as follow-up to keep the feature PR focused.
Checklist
I1: Extract subcommands from main.go (1624 lines → ~800)
cmd/cc-clip/connect.go— connectOpts, cmdConnect, runConnect, connectNotifySetupcmd/cc-clip/notify.go— cmdNotify, parseCodexNotifyPayload, postGenericNotificationcmd/cc-clip/serve.go— cmdServeI2: Dedup map eviction
Deduper(delete entries older than 2x window)I3: Improve /notify auth error messages
I4: Improve test coverage
internal/shim: 39.5% → 60%+ (add tests for codexNotifyManagedBlock edge cases)cmd/cc-clip: 8.7% → 30%+ (add tests for cmdNotify flag parsing, connectNotifySetup logic)I5: CmuxDeliverer context cancellation
exec.Commandtoexec.CommandContext(ctx, ...)indeliver_cmux.goRelated
docs/plans/2026-04-01-notification-bridge-design.md