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

A pull's re-check and conflict sentences live in one module, read by the pull page, conflicts and the terminal #5629

opened this

Merged 38d 7h ago, live in production

The two sentences a pull answers with after someone asks for something now live in one new module, src/actions/pullaskwords.ts. The four places that used to type them out import them instead. No wording changed.

Notes

opened this

The two sentences a pull answers with after someone asks for something now live in one new module, src/actions/pull_ask_words.ts. The four places that used to type them out import them instead. No wording changed.

  • CHECK_ASKED ("Check asked for at the current head.") is used by src/web/pages/pull.ts and src/tui/screens/stalled.ts.
  • RESOLUTION_ASKED ("Asked: the crew is resolving it on the pull's own branch.") is used by src/web/pages/conflicts.ts and src/tui/screens/pull.ts.

In each of the four files only two lines changed: the line with the sentence and one new import. grep -rn for either sentence under src/ now finds only the new module. I made it a new module rather than adding the resolution sentence to src/crew/proposal.ts, where PROPOSE_WHY lives, because the check sentence has nothing to do with proposals. That keeps both sentences in one place.

The new test/pull-ask-words.test.ts pins both sentences to their exact wording. It reads each of the four files as text and fails if one stops importing the module or if a sentence is typed back in.

bun x tsc --noEmit, bun scripts/design-lint.ts and the new test pass. I also ran the 28 test files that cover the touched files: 363 passed and 1 failed. The failure was "the crew proposes a resolution > one tap lands a commit on the head branch and a note on the pull" in test/crew-proposal.test.ts, which ran out of time at 5 s while the machine was loaded. Run on its own, that file passes all 14 tests both on this branch and on main.

🤖 Generated with Claude Code

Closes #5620

commented

The two sentences a pull answers with after someone asks for something now live in one new module, src/actions/pull_ask_words.ts. The four places that used to type them out import them instead. No wording changed.

  • CHECK_ASKED ("Check asked for at the current head.") is used by src/web/pages/pull.ts and src/tui/screens/stalled.ts.
  • RESOLUTION_ASKED ("Asked: the crew is resolving it on the pull's own branch.") is used by src/web/pages/conflicts.ts and src/tui/screens/pull.ts.

In each of the four files only two lines changed: the line with the sentence and one new import. grep -rn for either sentence under src/ now finds only the new module. I made it a new module rather than adding the resolution sentence to src/crew/proposal.ts, where PROPOSE_WHY lives, because the check sentence has nothing to do with proposals. That keeps both sentences in one place.

The new test/pull-ask-words.test.ts pins both sentences to their exact wording. It reads each of the four files as text and fails if one stops importing the module or if a sentence is typed back in.

bun x tsc --noEmit, bun scripts/design-lint.ts and the new test pass. I also ran the 28 test files that cover the touched files: 363 passed and 1 failed. The failure was "the crew proposes a resolution > one tap lands a commit on the head branch and a note on the pull" in test/crew-proposal.test.ts, which ran out of time at 5 s while the machine was loaded. Run on its own, that file passes all 14 tests both on this branch and on main.

🤖 Generated with Claude Code

commented

The re-check and conflict sentences now live in one module, src/actions/pull_ask_words.ts. The pull page, the conflicts view and the terminal all read them from there instead of each keeping its own copy, and the wording people see is unchanged.

This push merges main into the branch. The only conflict was in the imports at the top of src/web/pages/pull.ts. main had moved a different set of sentences on the same page (review verdicts, comments, "pull request is no longer here") into their own modules, so the branch needed CHECK_ASKED from pull_ask_words.ts and main needed reviewWords from review_words.ts. Both imports are kept. The two changes move different sentences, so nothing else had to be reconciled.

The type check is clean, the pull, conflict and ask test files pass (214 tests, 0 failures), and bun scripts/design-lint.ts passes.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs