Skip to content

chore(todos): TODO 归位清理 + skip 抽查 - #1511

Merged
DeliciousBuding merged 4 commits into
masterfrom
chore/todo-cleanup
Aug 2, 2026
Merged

chore(todos): TODO 归位清理 + skip 抽查#1511
DeliciousBuding merged 4 commits into
masterfrom
chore/todo-cleanup

Conversation

@DeliciousBuding

@DeliciousBuding DeliciousBuding commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

任务书 J:TODO 清理 + skip 抽查

TODO 归位(39 处 → 30 处,剩余全部带 issue 号)

新建 issue(标题带 TODO 标签)

Issue 内容 位置
#1503 a11y:等待审批卡片到达屏幕阅读器无播报 RowItem.tsx:394
#1504 copyLink:agenthub://card/ 死链需产品决策 mappers.ts:110 / labels.ts:133
#1505 word-diff 阈值未用真实样本校准 diffWordTokens.ts:51
#1506 Markdown 标题锚点(codeg parity #8)需新依赖 Markdown.tsx:96
#1507 Tooltip 视口翻转/真实定位/reduced-motion 真机验证 Tooltip.test.tsx:191-195
#1508 会话重命名/删除/复制链接(uiux gap #9 ConversationSidebar.tsx:229
#1509 HC 主题玻璃面板对比度(a11y #20 tokens-base.css:586
#1510 contacts/tasks 数据层分页未接后端 ContactMainParts.tsx:70 / TaskMainViews.tsx:110

skip 抽查(40 处:go 25 + app 15)——全部环境门,合理保留,无上报

  • short mode / binary not found / SSH host / symlink 不可用 / cc-switch db / Windows 平台 / cwd-go.mod 取件失败(go 25 处)
  • Edge 进程状态、Go 环境、dev server 探测(先探测失败才 skip,非无条件)、真实登录 env 批准(app 15 处)
  • 均带明确 skip message;无 "known failure" 式藏失败,无 .skip() 放松断言

验证

  • edge-server:go build ./... + go test ./... -short 23 包全绿;gofmt/vet 干净
  • app/shared:vitest 196 文件 1738 测试全绿;tsc 错误与 master 基线 diff 为 0(53 个既有错误,非本 PR 引入)

Summary by CodeRabbit

  • Documentation

    • Updated project progress tracking with TODO cleanup results, issue references, test-skip environment details, and validation status.
    • Clarified documentation for message pinning, unpinning, diff highlighting, accessibility behavior, and pending UI capabilities.
    • Improved issue tracking references across accessibility, transcript, workbench, contact, task, and ACP-related areas.
  • Tests

    • Updated test documentation and TODO references without changing test behavior.

Copilot AI review requested due to automatic review settings August 2, 2026 09:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds PROGRESS.md and updates TODO references and implementation comments across the shared app and edge-server ACP adapters. Runtime behavior and public declarations remain unchanged.

Changes

TODO tracking and documentation

Layer / File(s) Summary
Progress record
PROGRESS.md
Adds TODO classifications, issue tracking, skipped-test conditions, and validation results.
Shared pin-state documentation
app/shared/src/chatview/i18n/resources.ts, app/shared/src/transcript/*, app/shared/src/workbench/workbenchTranscriptChromeActionMappers.ts
Documents the implemented pinMap flow, adapter persistence, caller merging, and block.pinned toggling.
Shared TODO references and behavior notes
app/shared/src/chatview/components/RowItem.tsx, app/shared/src/styles/tokens-base.css, app/shared/src/ui/*, app/shared/src/workbench/*
Updates issue references and comments for accessibility, diff rendering, pagination, conversation actions, and card links.
ACP issue tracking
edge-server/internal/adapters/*acp.go
Associates ACP frame, wiring, prompt, validation, and verification work with issue #1404.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 35.71% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次变更的两个主要内容:清理并归档 TODO,以及抽查测试 skip。
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/todo-cleanup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
PROGRESS.md (1)

31-34: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

记录完整的验证范围和必需命令。

Line 32 只记录 go test ./internal/adapters/ -short。Edge Server 应记录完整的 go test ./... -short -count=1;Line 33 不应写为 57 + 124 + 后续全量。同时补上 git diff --checkgit status --short --branch 的执行结果。

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PROGRESS.md` around lines 31 - 34, Update the “验证” section in PROGRESS.md to
record the complete Edge Server command `go test ./... -short -count=1` and its
result instead of the narrower adapter test. Replace the ambiguous “57 + 124 +
后续全量” description with the actual app/shared Vitest scope and result, and add
execution results for `git diff --check` and `git status --short --branch`.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@PROGRESS.md`:
- Around line 15-16: Correct the classification in the PROGRESS.md summary: move
orchestrator_extract_preflight_test.go:102 from the short-mode gate category
into the missing-tool category because it lacks goimports, or rename the
category and update its count so the label and listed reason agree.
- Around line 7-13: Reconcile the TODO accounting in PROGRESS.md by explicitly
stating the denominator and how reference-only entries are classified. Correct
the category counts and location totals, clarify whether
prismRegistry.test.ts:13 is excluded, and add a formula whose categories and
removals sum to the claimed 30 remaining TODOs.

---

Outside diff comments:
In `@PROGRESS.md`:
- Around line 31-34: Update the “验证” section in PROGRESS.md to record the
complete Edge Server command `go test ./... -short -count=1` and its result
instead of the narrower adapter test. Replace the ambiguous “57 + 124 + 后续全量”
description with the actual app/shared Vitest scope and result, and add
execution results for `git diff --check` and `git status --short --branch`.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d38629a9-7ebc-416d-881c-4e9fb70875ec

📥 Commits

Reviewing files that changed from the base of the PR and between 830801a and cd13db0.

📒 Files selected for processing (22)
  • PROGRESS.md
  • app/shared/src/chatview/components/RowItem.tsx
  • app/shared/src/chatview/i18n/resources.ts
  • app/shared/src/styles/tokens-base.css
  • app/shared/src/transcript/normalizeHubMessages.ts
  • app/shared/src/transcript/pinMap.ts
  • app/shared/src/ui/DiffReviewPanelHelpers.ts
  • app/shared/src/ui/DiffReviewPanelTypes.ts
  • app/shared/src/ui/Markdown.tsx
  • app/shared/src/ui/Tooltip.test.tsx
  • app/shared/src/ui/diffWordTokens.ts
  • app/shared/src/ui/prismRegistry.test.ts
  • app/shared/src/workbench/ConversationSidebar.tsx
  • app/shared/src/workbench/pages/contacts/ContactMainParts.tsx
  • app/shared/src/workbench/pages/tasks/TaskMainViews.tsx
  • app/shared/src/workbench/workbenchTranscriptChromeActionMappers.ts
  • app/shared/src/workbench/workbenchTranscriptChromeLabels.ts
  • edge-server/internal/adapters/acp.go
  • edge-server/internal/adapters/acp_client.go
  • edge-server/internal/adapters/claude_acp.go
  • edge-server/internal/adapters/codex_acp.go
  • edge-server/internal/adapters/opencode_acp.go

Comment thread PROGRESS.md
Comment on lines +7 to +13
## TODO 处理统计(39 处)
- 过时删除(a 类)8 处:pinMap 落地(pinMap.ts:1 / normalizeHubMessages.ts:51,73 / mappers.ts:510)、P6 Step3 闭环(DiffReviewPanelHelpers.ts:64 / DiffReviewPanelTypes.ts:39)、unpinMenu 已实现(resources.ts:277,783)
- ACP 补 #1404(b 类)12 处:acp.go:153、acp_client.go:35,251,266,296,312,332,357,366、claude_acp.go:123、codex_acp.go:133、opencode_acp.go:130(#1404 OPEN,ACP spike 增量采纳)
- 建 issue 并补号(c 类)12 处 → 8 个 issue:a11y 审批卡播报 #1503(RowItem:394)、copyLink #1504(mappers:110/labels:133)、word-diff 阈值 #1505(diffWordTokens:51)、Markdown 锚点 #1506(Markdown:96)、Tooltip 真机验证 #1507(Tooltip.test:191-195 ×3)、会话操作 #1508(ConversationSidebar:229)、HC 玻璃面板 #1509(tokens-base.css:586 + prismRegistry.test:13 引用)、数据层分页 #1510(ContactMainParts:70/TaskMainViews:110)
- 纯信息保留(d 类):"See ReadTextFile for the TODO" 等引用注释 ×5、claude_code.go:10 引用 —— 指向已带号主 TODO
- 剩余 30 处 TODO 全部带 issue 号(#1404/#1503-#1510),可追踪性 100%

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Reconcile the TODO counts before merging.

Line 7 reports 39 TODOs. After 8 deletions, 31 entries remain. Lines 9-10 account for 24 TODOs, while Line 11 lists informational references without explaining the claimed 30 remaining TODOs. Line 10 also contains 13 location mentions unless prismRegistry.test.ts:13 is reference-only.

State the denominator and any reclassification rule. Add a formula that accounts for all entries and sums to 30.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PROGRESS.md` around lines 7 - 13, Reconcile the TODO accounting in
PROGRESS.md by explicitly stating the denominator and how reference-only entries
are classified. Correct the category counts and location totals, clarify whether
prismRegistry.test.ts:13 is excluded, and add a formula whose categories and
removals sum to the claimed 30 remaining TODOs.

Comment thread PROGRESS.md
Comment on lines +15 to +16
### go(25 处)
- short mode 门 ×9:claude_adapter_integration_test.go:18、opencode_adapter_integration_test.go:17、hub_e2e_test.go:203,293,459,503、hub_integration_test.go:317,446、orchestrator_extract_preflight_test.go:102 中 goimports 未装 —— message 均说明原因

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the skip-category classification.

Line 16 labels orchestrator_extract_preflight_test.go:102 as a short-mode gate, but the note says that goimports is missing. Move this entry to a tool-missing category, or change the category label and adjust the count.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PROGRESS.md` around lines 15 - 16, Correct the classification in the
PROGRESS.md summary: move orchestrator_extract_preflight_test.go:102 from the
short-mode gate category into the missing-tool category because it lacks
goimports, or rename the category and update its count so the label and listed
reason agree.

@DeliciousBuding
DeliciousBuding merged commit d2af216 into master Aug 2, 2026
21 checks passed
@DeliciousBuding
DeliciousBuding deleted the chore/todo-cleanup branch August 2, 2026 09:33
DeliciousBuding added a commit that referenced this pull request Aug 11, 2026
* chore(todos): 删已过时 TODO — pinMap 落地/P6 Step3 闭环/unpinMenu 已实现

* chore(todos): ACP 相关 TODO 全部补追踪 issue #1404

* chore(todos): 无追踪 TODO 建 issue #1503-#1510 并在注释中补号

* chore(todos): PROGRESS.md 记录 TODO 归位 + skip 抽查判定(40 处全环境门)

---------

Co-authored-by: Codex <codex@vectorcontrol.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants