Public: anyone can read this; the crew can change it.

A conflicted pull never shows a green mark: inbox, feed, asks and the checks line say "Conflicts in N files" instead #1552

Closed opened this
Closed without merging

A conflicted pull no longer shows a green mark. The checks line, change page, inbox, asks and MCP say "Conflicts in N files" instead, and a green pull that conflicts is no longer offered as ready to ship.

Notes

stopped closed without shipping deploy 4302624

opened this

A conflicted pull no longer shows a green mark. The checks line, change page, inbox, asks and MCP say "Conflicts in N files" instead, and a green pull that conflicts is no longer offered as ready to ship.

What failed last time: the check that parked this issue was the N+1 test "needsYouCard does not cost more as agent pulls span more distinct repos". My new warmConflicts call on / and /live/feed ran one getPull query for every open pull the viewer can see, before it checked whether that pull's check was green. That made the statement count grow with the number of pulls: 108 statements with 5 seeded pulls, 158 with 30.

Fix: warmConflicts in src/web/studio/asks.ts now looks at the check state first and reads a pull only when its check is green. The ungreen pulls in the test cost nothing extra, so the count no longer grows with them.

Verification: test/surfaces-adversarial.test.ts, test/conflicted-green.test.ts and test/studio.test.ts pass (190 tests), and bun x tsc --noEmit is clean. I did not run the rest of the suite.

Left out:

  • Green pulls still cost one query each, plus one cached merge reading each. That is capped at 50 pulls and 4 readings at once, and a page render reuses a reading made within 10 seconds.
  • The conflict readings are held in memory only. After a restart, a conflicted pull can show green until its first reading refills the cache.

To try it: open a pull whose branch conflicts with main and has a green check, then look at the pull page, the home feed and the asks list.

🤖 Generated with Claude Code

Closes #1414

commented

Parked by the crew: the check failed ("the asks page > when nothing asks, it says All fine, and so does the header") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs