Repository navigation
refactor(terminal): simplify copy-sensitive token checks - #146934
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:41 AM ET / 10:41 UTC. ClawSweeper reviewWhat this changesSimplifies terminal note wrapping by removing redundant URL and path-prefix checks while preserving copyable paths and underscore-containing filenames. Merge readiness✅ Ready for maintainer review Keep open: the simplification preserves string classification, introduces no identified defect, and remains absent from inspected main. This member-authored, maintainer-labeled PR is protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherTerminal notes display messages from CLI commands and setup flows. Their wrapping logic keeps paths and URLs intact before passing formatted text to the terminal renderer. flowchart LR
A[CLI and setup messages] --> B[Normalize note text]
B --> C[Measure and classify words]
C --> D[Preserve copyable tokens]
C --> E[Wrap ordinary words]
D --> F[Render terminal note]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -19. Total -19 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep token classification in the existing wrapping owner with the simpler equivalent predicate and retain the public wrapping tests. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR claims no behavioral defect; source inspection establishes that the removed conditions are redundant for the caller's string inputs. Is this the best way to solve the issue? Yes: removing subsumed checks is a narrow simplification that preserves the existing owner, public API, and wrapping behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f3bdcc10d628. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* temp/pr-145950: (101 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* commit '060e856e5f9df245d63c98990fcb47e18108c6b9': (97 commits) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) test(models): cover quota recovery during catalog discovery (#146708) fix(macos): recover browser sign-in when no browser opens (#146787) fix(process): prevent one-shot agents exiting while polling (#144268) fix(status): label the session inventory as stored (#146979) fix: avoid repeated background reads while loading chat (#146953) refactor(ui): narrow Skill Workshop proposal context (#146977) ...
* temp/pr-137049: (110 commits) improve: reduce GitHub OAuth maintenance work for large agent rosters (#147021) fix(test): avoid settings lock writer startup timeouts (#147029) fix(update): correct backup guidance and cover incident regressions (#147023) refactor(gateway): share connection lifecycle across transports (#145950) refactor(telegram): share HTML text escaping (#146936) perf(build): reduce disk use in UI performance checks (#146687) refactor(memory-wiki): share freshness result construction (#146935) improve(gateway): use metadata projection for presence (#146817) test(agents): reuse complete Responses model fixtures (#147015) fix(sessions): align the reclamation-memory test with the archive session owner (#147028) refactor(terminal): simplify copy-sensitive token checks (#146934) refactor(media): remove duplicate spaced path fallback (#146933) refactor(cli): reuse command-group names (#146893) improve(plugins): reduce JavaScript generation capture work (#146993) test: align plugin fixtures with current runtime contracts (#147000) refactor(browser): separate session tab tracking from cleanup (#146973) fix(tests): make systemd clock fixtures private (#146990) fix(linux): retire sleep guards when logind disconnects (#146046) refactor(matrix): share draft fallback delivery (#144840) fix(sessions): preserve cross-agent replies after reload (#146799) ...
What Problem This Solves
Terminal note wrapping repeats path-prefix checks already covered by its slash and backslash checks.
User Impact
No user-visible behavior changes.
Why This Change Was Made
Remove the redundant checks and retain file-like underscore handling. Production changes: −19 lines; tests unchanged.
Evidence