multica/apps/desktop/electron/ipc
yushen d392238be3 feat(subagent): tag internal orchestration messages and filter from user-facing history
Announcement messages from subagent completion flows were persisted as
regular user messages, polluting conversation history and leaking
orchestration instructions to frontend/CLI.

- Add `internal?: boolean` to SessionEntry message variant
- SessionManager.saveMessage accepts { internal: true } option
- SessionManager.loadMessages filters internal by default
- Agent.runInternal() tags messages as internal, rolls back from memory
- Agent.withRunMutex() prevents concurrent run/runInternal mis-tagging
- AsyncAgent.writeInternal() suppresses event forwarding during internal runs
- Announce flows use writeInternal() instead of write()
- Desktop IPC getHistory reads from session storage (filtered)
- CLI session show parses SessionEntry, supports --show-internal flag

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 18:34:11 +08:00
..
agent.ts feat(desktop): add cron tool to Tools page UI 2026-02-06 14:47:54 +08:00
cron.ts feat(desktop): add Cron Jobs management page 2026-02-06 15:16:33 +08:00
hub.ts feat(subagent): tag internal orchestration messages and filter from user-facing history 2026-02-06 18:34:11 +08:00
index.ts feat(desktop): add Cron Jobs management page 2026-02-06 15:16:33 +08:00
profile.ts feat(desktop): add style selector to agent settings dialog 2026-02-04 14:42:29 +08:00
provider.ts feat(desktop): add provider IPC handlers 2026-02-04 18:25:13 +08:00
skills.ts feat(desktop): add IPC handlers for Hub, Tools, and Skills management 2026-02-03 18:25:20 +08:00