Skip to content

fix: 修复无法在大文档展开的限制#424

Merged
1 commit merged into
1024XEngineer:mainfrom
Nomikfk1215:codex/progressive-mention-index
May 10, 2026
Merged

fix: 修复无法在大文档展开的限制#424
1 commit merged into
1024XEngineer:mainfrom
Nomikfk1215:codex/progressive-mention-index

Conversation

@Nomikfk1215

Copy link
Copy Markdown
Collaborator

Summary

  • seed the mention index with a shallow bounded scan so @ completion can respond before full traversal finishes
  • run full mention index rebuilds in the background with explicit partial/building/ready stats
  • surface mention index state in the TUI palette footer

Tests

  • go test ./internal/mention ./tui
  • go test ./...

@codecov

codecov Bot commented May 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 72.72727% with 39 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/mention/index.go 75.18% 21 Missing and 12 partials ⚠️
tui/component_palettes.go 40.00% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

@fennoai

fennoai Bot commented May 10, 2026

Copy link
Copy Markdown

Automated review completed. No actionable findings from code quality, performance, security, or documentation passes.

@Nomikfk1215

Copy link
Copy Markdown
Collaborator Author

@xgopilot 修复补充当前codecov覆盖率不足的问题

@fennoai

fennoai Bot commented May 10, 2026

Copy link
Copy Markdown

Summary

Added test-only coverage fixes for the progressive mention index changes.

  • internal/mention/index_test.go: added coverage for Prewarm, seed truncation/visit-limit behavior, and readMentionSeedDir edge cases.
  • tui/model_test.go: added coverage for mention palette footer states when the index is partial or building.
  • Validation completed with go test ./internal/mention ./tui, go test ./..., and a follow-up coverage run showing tui/component_palettes.go at 97.4% and internal/mention/readMentionSeedDir improved to 92.3%.

Push Result

Changes were committed and pushed here:

No production code was changed.

View job run

@Nomikfk1215 Nomikfk1215 changed the title Make mention indexing non-blocking fix: 修复无法在大文档展开的限制 May 10, 2026
@Nomikfk1215 Nomikfk1215 closed this pull request by merging all changes into 1024XEngineer:main in 97a3fd8 May 10, 2026
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.

1 participant