Skip to content

Session Handoff [auto-1877]: Fold Whitespace in pr_review.py reply --match #1973

Description

@ptr727

Next steps, in priority order

  1. Fix pr_review.py reply --match: a pattern copied from a printed unresolved: line can still miss its own thread #1877 in scripts/pr_review.py: make reply --match fold whitespace in both the pattern and the thread body before the substring compare, the same collapse describe() applies to the printed unresolved: line, so a pattern copied from that line selects its own thread. Done looks like a test that copies a pattern from a printed unresolved: line spanning a line break or a run of spaces and selects the thread, with the fix reverted the test fails, and the pull request merged to develop with Closes on promotion: #1877 in its body.
  2. Leave the 120-character truncation as a display limit, per the issue, stating the limit in the refusal's help text or docstring only where it reads naturally.

External blockers

None known. The fix stays inside this repository's tree.

Internal dependencies

None. One issue, one lane.

State

Nothing started. No branch, worktree, or pull request exists for this lane. Isolate per repo-worktree on feature/auto-1877 from develop.

The parked decision queue

0 parked decisions on this lane.

What the last round did

Created by an unattended-handoff picker, scope develop, from the open backlog.

What not to repeat

Nothing attempted yet.

New learnings

None yet.

Activity

  1. added
    handoffA link in the session handoff chain, one open issue per track
    on Sep 28, 2026
  2. ptr727 commented on Sep 28, 2026

    @ptr727
    OwnerAuthor

    Fixed #1877 in PR #1974, merged to develop as 2462619 (squash of 034ad43). matching_threads() now folds whitespace to a single space on both sides of the --match compare, the same collapse describe() applies before printing an unresolved: line, so a pattern copied from that printed line matches the thread it was copied from through a line break, tab, or run of spaces. Left the 120-character display cutoff as is per the issue, documenting it on describe() as a display limit rather than a matching concern.

    New regression test test_a_pattern_copied_from_the_printed_unresolved_line_selects_its_own_thread, confirmed to fail against the pre-fix implementation and pass against the fix. unittest tests.test_pr_review (442 tests), ruff format --check, ruff check, and mypy all clean. Local adversarial review pass recorded against develop with no findings; Copilot's PR review landed with 0 unresolved/suppressed findings and full coverage.

    No lesson filed; no decision needed on this lane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    handoffA link in the session handoff chain, one open issue per track

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions