multica/apps/desktop/electron
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
..
ipc feat(subagent): tag internal orchestration messages and filter from user-facing history 2026-02-06 18:34:11 +08:00
electron-env.d.ts fix(desktop): add cron API type to ElectronAPI interface 2026-02-06 15:43:55 +08:00
main.ts merge: resolve conflicts with origin/main 2026-02-04 14:04:47 +08:00
preload.ts feat(desktop): add Cron Jobs management page 2026-02-06 15:16:33 +08:00