Skip to content

Add activity feed API#42

Closed
jonathanlab wants to merge 1 commit into
mainfrom
10-17-demo_ffdb4dc5_add_activity_feed_api
Closed

Add activity feed API#42
jonathanlab wants to merge 1 commit into
mainfrom
10-17-demo_ffdb4dc5_add_activity_feed_api

Conversation

@jonathanlab

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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
Sign up for free to 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