๐Ÿ› fix: local agent sessions turn Auto-fix on for the pull requests they open

Merged
AT
1mo ago
+46-6

Slice: #111

Fixes State #142 of P-42: #137, #139 and #141 opened with the desktop app's Auto-fix off. The app's gh login is the agent's and it restarted after the login moved, so P-42's cause is not it. The app turns Auto-fix on for a session's new pull request only while that session is open on screen (its renderer says the owner wants it per session, and only for the session it shows), so the slice sessions a coordinator starts in the background open theirs with it off. No Code tab setting changes that.

  • src/session-start.ts: the line for a local agent session goes on (AUTO_FIX): after each gh pr create, when the ccd_pr tools are here and get_status shows auto_fix off, turn it on with set_monitor. set_monitor checks the session opened the pull request and the app's gh login wrote it, so this reaches only the agent's own pull requests. Cloud sessions' line is unchanged: they have no such switch.
  • README, session-start: says the same and why.
  • docs/decisions.md: records it.
  • Tests: the pinned success lines carry the new text, and one test pins its wording.

pnpm check passes (877 tests).

๐Ÿค– Generated with Claude Code


Summary by cubic

Fixes Auto-fix being off on pull requests opened by agent sessions started in the background, since the desktop app only enables Auto-fix for a session visible on screen. Local agent sessions now receive a session-start instruction to turn Auto-fix on after each gh pr create when get_status reports it off, using set_monitor. Cloud sessions are unaffected.

This addresses State #142 of P-42 (slice #111).