multica/packages/core/src/agent
Jiayuan Zhang 81998e6309 fix(telegram): skip tool narration messages, only send final answer
When the agent uses tools (web search, etc.), it generates intermediate
narration text like "Let me search..." before each tool call. These were
being sent as separate Telegram messages, causing message spam. Now we
detect tool_use blocks in the message content and skip sending those
intermediate messages — only the final answer reaches the user.

Applied to both Desktop channel plugin and Gateway Telegram service.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 02:04:17 +08:00
..
auth-profiles test(core): migrate 5 tests from internal mocks to real implementations 2026-02-13 22:17:52 +08:00
cli refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
context-window fix(compaction): prevent double-counting in split-turn detection 2026-02-13 13:33:31 +08:00
profile Merge pull request #149 from multica-ai/feat/default-agent-name-multica 2026-02-12 23:08:33 +08:00
providers fix(providers): use dedicated openai-codex provider instead of aliasing to openai 2026-02-13 15:01:57 +08:00
session test(core): migrate 5 tests from internal mocks to real implementations 2026-02-13 22:17:52 +08:00
skills refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
subagent test(core): migrate 5 tests from internal mocks to real implementations 2026-02-13 22:17:52 +08:00
system-prompt feat(agent): add connected channels section to system prompt 2026-02-13 01:37:29 +08:00
tools test(core): migrate 5 tests from internal mocks to real implementations 2026-02-13 22:17:52 +08:00
async-agent.test.ts feat(agent): expose isRunning and lastRunError on Agent and AsyncAgent 2026-02-11 17:09:33 +08:00
async-agent.ts feat(core): add message source tracking and persistence 2026-02-12 18:45:15 +08:00
channel.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
credentials-cli.ts fix(core): read data tool API key from credentials.json5 2026-02-11 16:45:46 +08:00
credentials.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
errors.ts feat(agent): add isContextOverflowError utility 2026-02-12 14:43:33 +08:00
events.ts feat(compaction): switch default to summary mode with split-turn and adaptive chunking 2026-02-13 13:26:34 +08:00
extract-text.ts fix(telegram): skip tool narration messages, only send final answer 2026-02-14 02:04:17 +08:00
index.ts feat(desktop): add subagent dashboard with real-time status tracking 2026-02-13 13:46:58 +08:00
message-timestamp.test.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
message-timestamp.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
run-log.ts feat(agent): add structured run logging for debugging 2026-02-13 21:38:02 +08:00
runner.ts feat(agent): add structured run logging for debugging 2026-02-13 21:38:02 +08:00
sync-agent.ts refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
tokens.test.ts fix(agent): add NO_REPLY detection utility for filtering silent replies 2026-02-11 17:16:22 +08:00
tokens.ts fix(agent): add NO_REPLY detection utility for filtering silent replies 2026-02-11 17:16:22 +08:00
tools.ts feat(tools): add image resize wrapper for read tool 2026-02-13 15:12:37 +08:00
types.ts feat(agent): add structured run logging for debugging 2026-02-13 21:38:02 +08:00
workspace.test.ts refactor(agent): move workspace to ~/Documents/Multica 2026-02-12 19:04:20 +08:00
workspace.ts refactor(agent): move workspace to ~/Documents/Multica 2026-02-12 19:04:20 +08:00