Skip to content

feat(desktop): automation-fired turns say so — provenance chip above the user bubble (F6) - #685

Merged
jackwener merged 1 commit into
mainfrom
feat/automation-turn-attribution
Jul 9, 2026
Merged

feat(desktop): automation-fired turns say so — provenance chip above the user bubble (F6)#685
jackwener merged 1 commit into
mainfrom
feat/automation-turn-attribution

Conversation

@jackwener

Copy link
Copy Markdown
Member

Closes the F6 gap recorded at the #643 adoption: a heartbeat automation's injected prompt rendered as a plain user bubble — impersonating the user. Now the turn carries provenance end-to-end: UserMessage.origin (persisted from the existing TurnOrigin plumbing) → materializeTurns projects automationOrigin → chat renders a quiet 「⏱ 定时任务触发」 chip above the bubble (id in tooltip only). Cron fresh sessions already had session-level attribution (labels + name). Marker variant follows the aborted-chip recipe; fixture baseline + materialize present/absent tests included. Desktop 2293/2293, runtime green, dead-css clean, CDP verified.

…the user bubble (F6)
A heartbeat automation injects its prompt as a user message; the chat
rendered it as if the user typed it. Turns now carry provenance:
UserMessage gains origin (persisted at the agent-run append site, fed
from the existing TurnOrigin plumbing), materialize projects it as
turn.user.automationOrigin, and the chat shows a quiet self-end chip
「⏱ 定时任务触发」 above the bubble (automation id in the tooltip —
no raw ids inline, per the lineage-badge rule). Fixture msg-user-2 is
automation-marked so the chip has a visual baseline; materialize tests
pin present/absent projection. Cron fresh sessions already carry
session-level attribution (labels + name) — unchanged.
Desktop 2293/2293 + runtime suite green, dead-css clean, CDP verified.
@jackwener
jackwener merged commit 73a27e7 into mainJul 9, 2026
@jackwener
jackwener deleted the feat/automation-turn-attribution branch July 9, 2026 14:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jackwener