logancyang_obsidian-copilot/docs
Zero Liu bd60f10f56
fix(agent-mode): copy/insert the full agent response, not just trailing prose (#166) (#2616)
* docs(plan): fix copying all text parts of an agent response (#166)

Otacon-approved plan for issue logancyang/obsidian-copilot-preview#166:
agentResponseText collects every text part, not just the trailing run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(agent-mode): copy/insert the full agent response, not just trailing prose (#166)

Copy and Insert/Replace acted on finalAnswerText, which reused
splitTrailingText and kept only the last contiguous run of text parts —
so a 'text -> thought -> text' turn dropped the earlier prose. Rename the
helper to agentResponseText and have it collect every non-empty text part
in stream order (joined with blank lines, then cleanMessageForCopy).
splitTrailingText is untouched, so the 'Worked for X' folding is unchanged.

Fixes logancyang/obsidian-copilot-preview#166

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(plan): archive completed plan for #166

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* update docs

* test(agent-mode): clarify interleaved-prose fixture wording (#166)

The flipped test reused fixture strings that said the early prose 'should
NOT be copied', which now contradicts the assertion (it is copied). Reword
the strings to describe the new behavior.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 19:44:04 -07:00
..
plans/archive fix(agent-mode): copy/insert the full agent response, not just trailing prose (#166) (#2616) 2026-06-29 19:44:04 -07:00
agent-mode-and-tools.md feat(agent-mode): one-click "Report an Issue" flow with screenshot + frame log (#2614) 2026-06-15 16:43:26 -07:00
agent-mode-windows-setup.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
chat-interface.md feat(relevant-notes): dedicated pane with redesigned populated view (#2559) 2026-06-05 06:54:12 +08:00
context-and-mentions.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
copilot-plus-and-self-host.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
custom-commands.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
getting-started.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
index.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
install-claude-agent-mode-windows.ps1 docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
install-codex-agent-mode-windows.ps1 docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
llm-providers.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
miyo-api.md Refactor Miyo integration for folder API (#2331) 2026-03-30 09:05:34 +09:00
models-and-parameters.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
projects.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
system-prompts.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
troubleshooting-and-faq.md feat(keychain): migrate API key storage to Obsidian Keychain (#2364) 2026-05-14 13:57:21 -07:00
vault-search-and-indexing.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00