logancyang_obsidian-copilot/docs
Logan Yang 9535bf5a74
Replace indexing Notice with in-chat progress card & fix phantom re-indexing (#2173)
* Replace indexing Notice with in-chat progress card & fix phantom re-indexing

Replace the Obsidian Notice popup for indexing progress with a persistent
in-chat progress card using the same Jotai atom pattern as project mode.

Key changes:
- New IndexingProgressCard component with progress bar, pause/resume/stop,
  error display, and auto-close on completion
- Jotai atom (indexingProgressAtom) driven by IndexOperations, read by React
- Card only appears when files actually need indexing (no flash on mode switch)
- User-initiated actions (refresh/reindex buttons) show "Index Up to Date"
  feedback with green check icon
- Fix phantom re-indexing: checkIndexIntegrity() is now diagnostic-only
- Fix progress bar accuracy: totalFiles counted after chunk preparation
- Remove duplicate completion Notices from ChatControls and RelevantNotes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix insert/replace at cursor including agent reasoning blocks (#2174)

Strip <!--AGENT_REASONING:...--> markers in cleanMessageForCopy() so
that "Insert / Replace at cursor" only inserts the actual AI response,
not the internal agent reasoning metadata.

Uses greedy .* (single-line) so the regex matches to the real closing
--> even if the JSON payload contains that sequence.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

* Restore integrity check marking files for re-indexing

checkIndexIntegrity() was made diagnostic-only to fix phantom
re-indexing, but this left files with missing embeddings permanently
skipped. The real safeguard is clearFilesMissingEmbeddings() at the
start of each indexing run, which prevents the repeat cycle. Restore
the mark so the next indexing trigger picks up integrity failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 20:08:43 -08:00
..
AGENT_PLANNING_REFLECTION_V0.md Replace indexing Notice with in-chat progress card & fix phantom re-indexing (#2173) 2026-02-10 20:08:43 -08:00
AGENT_REASONING_BLOCK.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
BEDROCK_TOOL_CALLING.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
CITATION_IMPLEMENTATION.md Implement inline citation (#1821) 2025-09-21 20:03:09 -07:00
CONTEXT_ENGINEERING.md Audit context envelope, tag alignment, artifact dedup, and logging (#2164) 2026-02-07 21:18:25 -08:00
deprecating-intent-analyzer.md Deprecate IntentAnalyzer (#2069) 2025-12-15 19:15:44 -08:00
MESSAGE_ARCHITECTURE.md Context revamp (#1971) 2025-10-27 23:28:36 -07:00
MIYO_SEARCH_PLAN.md Miyo Integration Phase 1: abstract semantic index backend (#2155) 2026-02-07 21:39:59 -08:00
NATIVE_TOOL_CALLING_MIGRATION.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
SELF_HOSTED_SEARCH.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00
TECHDEBT.md Implement inline citation (#1821) 2025-09-21 20:03:09 -07:00
TODO-composer-tool-redesign.md Agent UIUX Improvements (#2149) 2026-02-04 17:10:28 -08:00
TOOLS.md Migrate to native tool call in plus and agent (#2123) 2026-01-26 18:35:27 -08:00