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 #1537

Closed opened this
Closed without merging

A conflicted pull with a passing check no longer shows a green mark on its checks line, its change page, the home inbox, the asks or the MCP. The new test and the other suites I ran (check-list, pulls, asks, feed, mcp, studio and related) pass, and the type check is clean.

Notes

stopped closed without shipping deploy 05a3ac2

opened this

A conflicted pull with a passing check no longer shows a green mark on its checks line, its change page, the home inbox, the asks or the MCP. The new test and the other suites I ran (check-list, pulls, asks, feed, mcp, studio and related) pass, and the type check is clean. I did not run the whole check; the forge runs that on this push.

What changed

  • Checks line (src/web/pages/pull.ts): a pull with a passing check and conflicts reads "Conflicts in N files" in the red bad style. "Checks passed" and class="ok" appear again once the conflict is resolved.
  • Change page (src/web/studio/change.ts, words.ts): the badge reads stopped instead of look, and the same applies in the lists that call pullWord.
  • Inbox, asks, feed and MCP (src/web/studio/asks.ts): a conflicted pull is no longer raised as a "green, ready for a look" ask. Before the viewer's asks are built, the check-green pulls are read for conflicts. This happens on the home, /live/feed, GET /api/v1/asks, GET /api/v1/feed and the MCP asks and feed tools. That read costs two git calls per green pull. A page render skips pulls it read in the last 10 seconds, but the API and MCP always re-read.
  • Memory of readings (src/core/conflicts.ts): each conflict reading made by pullStatus or the pull list is kept in memory so the synchronous inbox and asks can use it without calling git per row. A restart forgets it, and the next request refills it.
  • Tests: test/conflicted-green.test.ts is added to GATE. It makes a pull with a passing check conflict with main, then shows no green on the checks line, change page, home, asks (MCP and API) or feed. After main takes the same edit, the green is back everywhere.
  • Existing test changed: test/studio.test.ts asserted data-word="look" on a conflicted change page, which was the bug itself. It now expects stopped.

Left out

  • A conflicted pull simply drops out of the inbox. I did not add a "needs a rebase" ask.
  • The "fast tier: green" text under the checks line is unchanged. It is plain text, not the green mark.
  • The base can move without a new reading. A badge or ask can then lag until the next page view, API or MCP read, or pullStatus call refreshes it. A page render within 10 seconds of a pull's last reading can lag the same way.

Try it Make a pull, give it a passing check, then push a conflicting edit to main. /OWNER/NAME/pulls/N/files shows "Conflicts in 1 file", and the home and asks stop listing the pull.

Closes #1414

commented

Parked by the crew: the check failed ("surfaces adversarial: web > N+1: needsYouCard does not cost more as agent pulls span more distinct repos") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs