A Home project underline can stay on the wrong row after navigation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- go
- 领域
- cli, testing-qa
调研方向
Start in internal/tui3/home.go around projectHover at line 615 and its pointer reset near line 4300, then inspect the row draw in internal/tui3/homecell.go:499. Run make demo-home to reproduce the stale underline while navigating and rebuilding Home. Done means keyboard movement and rebuilds cannot leave an old index underlining another project, with e2e and unit coverage and the former cue recorded in invalidates.
由索引模型根据 Issue 内容生成。
描述
Seen on dev@debffabf6. Surfaced while verifying #1422; introduced by it.
What happened
A hovered project's underline can remain while the keyboard moves through conversations. projectHover stores a line index and is updated on pointer movement, but Home rebuilds its lines without clearing or rebinding that index. After a rebuild the underline can appear on a different project until the pointer moves. Clicking still acts on the correct hit row; the defect is the stale visual cue.
Replication
Deterministic (no model). Run make demo-home, hover one project name on Home, then use the arrow keys to change the conversation selection without moving the pointer. Observe the underline persisting. Trigger a Home list rebuild, such as a search or project refresh, and observe that the old index can underline a different project.
Where
internal/tui3/home.go:615 at dev@debffabf6 defines projectHover as an index; :4300 resets it only during pointer handling. The row draw checks that index in internal/tui3/homecell.go:499.
The fix
Clear project hover on keyboard movement and on line rebuild, or track the hovered project's stable identity and revalidate it against the painted frame.
Acceptance
- e2e: keyboard navigation and Home rebuilds remove or correctly relocate the underline before further pointer movement.
- Unit: a hover-then-rebuild test cannot underline another project by the old line index.
- Record the former stale cue in
invalidates.
- 主要语言
- Go
- 星标
- 115
- 派生
- 14
- 平均合并
- 9 小时 35 分钟
- 30 天内合并 PR
- 752
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Agent-Field/CodeAF 的其他 Issue
-
area:chat bug sev:papercut
难度 2/5 1-3 小时 新手友好度 86/100
Agent-Field/CodeAF#1592 ·
维护者通常 1 天内回复
-
area:headless bug sev:critical
难度 2/5 1-3 小时 新手友好度 88/100
Agent-Field/CodeAF#1566 ·
维护者通常 1 天内回复
-
area:chat bug sev:critical
难度 2/5 1-3 小时 新手友好度 82/100
Agent-Field/CodeAF#1548 · 1 条评论 ·
维护者通常 1 天内回复
-
area:chat feature
难度 2/5 1-3 小时 新手友好度 88/100
Agent-Field/CodeAF#1510 ·
维护者通常 1 天内回复
-
area:tests bug
难度 2/5 1-3 小时 新手友好度 82/100
Agent-Field/CodeAF#1489 ·
维护者通常 1 天内回复
查看 Agent-Field/CodeAF 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
siderolabs/terraform-provider-talos#414 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
JuliaComputing/jh#63 · 1 条评论 ·
-
area/proxy kind/bug priority/backlog triage/accepted
难度 2/5 1-3 小时 新手友好度 68/100
lexfrei/cloudflare-tunnel-gateway-controller#840 ·
维护者通常 1 天内回复
-
Priority: Normal Type: Bug
难度 2/5 1-3 小时 新手友好度 78/100
cloudflare/cloudflared#1747 ·