Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR reduces current-line navigation and wrapped-row rendering costs while adding regression coverage for cursor identity and wrapped CJK content.
Confidence Score: 4/5The PR appears safe to merge, with only a non-blocking string-style inconsistency in the new wrapped-CJK test. The navigation-state split, initial cursor fallback, and wrapped-row chunk path retain their relevant behavioral contracts; the only accepted issue is inconsistent quote style in newly added test code. Files Needing Attention: src/ui/AppHost.cursor-line.test.tsx Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Files, comments, filter] --> B[buildReviewStreamState]
B --> C[Visible files and hunk cursors]
C --> D[resolveSelectedFile]
D --> E[Selected hunk]
E --> F[firstLineCursorInHunk fallback]
F --> G[Cursor highlight]
G --> H[Wrapped StyledText chunk rendering]
Prompt To Fix All With AI### Issue 1
src/ui/AppHost.cursor-line.test.tsx:111-113
**Use consistent string quotes**
The new fixture and assertions use double-quoted string literals instead of the repository-required single-quoted style, creating formatter and style inconsistency across this test.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "fix(ui): bound current-line navigation c..." | Re-trigger Greptile |
| const bootstrap = { | ||
| ...createTestVcsAppBootstrap({ | ||
| files: [ |
There was a problem hiding this comment.
The new fixture and assertions use double-quoted string literals instead of the repository-required single-quoted style, creating formatter and style inconsistency across this test.
Context Used: guidelines.mdc Cursor rule (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/ui/AppHost.cursor-line.test.tsx
Line: 111-113
Comment:
**Use consistent string quotes**
The new fixture and assertions use double-quoted string literals instead of the repository-required single-quoted style, creating formatter and style inconsistency across this test.
**Context Used:** guidelines.mdc Cursor rule ([source](https://github.com/modem-dev/modem/blob/main/.cursor/rules/guidelines.mdc))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Summary
StyledTextchunk path for wrapped gutter and full-row highlights instead of converting every visual line into React spansBenchmark evidence
Five-sample medians from the release benchmark fixtures:
The broader 518-physical-line mount metric remains above the older stable baseline and is not claimed as fixed here. The pathological long-line regression and navigation retention regression that motivated this change are resolved.
Validation
bun run typecheckbun run lintbun run format:checkbun run check:packbun run test:integration— 97 passingbun run test:tty-smoke— 9 passingThis PR description was generated by Pi using OpenAI GPT-5.6-sol