Uh oh!
There was an error while loading. Please reload this page.
feat(desktop): automation-fired turns say so — provenance chip above the user bubble (F6) - #685
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) →materializeTurnsprojectsautomationOrigin→ 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.