Add activity feed API#42
Closed
jonathanlab wants to merge 1 commit into
Closed
Conversation
adboio
added a commit
that referenced
this pull request
Jul 1, 2026
Tasks with an open PR get automatically re-prompted on a timer to fix CI
("babysitting"). That re-entry injects a ~30-line prompt as an ordinary user
turn, so it reads as a wall of text in the user's own voice and buries their
last real message.
This is the client half: when a prompt carries `_meta.automatedCheck`, render
it as a muted, collapsed row ("Automated CI check · 2 of 3 [#42]") that expands
to the full prompt, instead of a user bubble.
- agent-server `user_message` handler forwards the command's `_meta` onto the
logged `session/prompt`, so the backend tag reaches the renderer.
- buildConversationItems emits a new `automated_check` ConversationItem
(via extractAutomatedCheck); an explicit tag wins over the git-action /
skill-button / user-message heuristics.
- New AutomatedCheckMessage renders it via the existing ToolRow primitive;
wired into both renderers (ConversationView, ChatThread), buildThreadGroups
(treated as a turn opener, never folded into a tool group), and
extractSearchableText (excluded, since the body is collapsed).
Wire contract: `_meta.automatedCheck = { kind, iteration?, maxIterations?, prUrl? }`.
Untagged messages are unaffected (no behavior change until the backend sends it).
Backend counterpart (posthog/posthog: thread the existing FOLLOWUP_SOURCE_CI
tag through send_user_message as `_meta`) is a separate change and must land
before this renders anything. Phase 2 (collapse the whole turn + coalesce
consecutive no-op checks) is not included here.
Verified: @posthog/ui + @posthog/agent typecheck clean; biome clean;
buildConversationItems.test.ts 25/25 pass (incl. 2 new cases).
Generated-By: PostHog Code
Task-Id: f8b532ad-58fb-4fb5-a18f-e80a512d518c
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 free
to 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.

No description provided.