Skip to content

feat(canvas): keep task threads human-only#3660

Draft
raquelmsmith wants to merge 1 commit into
mainfrom
posthog-code/thread-panel-human-only
Draft

feat(canvas): keep task threads human-only#3660
raquelmsmith wants to merge 1 commit into
mainfrom
posthog-code/thread-panel-human-only

Conversation

@raquelmsmith

Copy link
Copy Markdown
Member

Problem

Task threads had become noisy: the agent's live conversation (its turns, the prompts sent to it, and a running status line) was mirrored into the thread panel alongside human comments. This broke the thread as a focused space for human↔human discussion. Raised in a Slack thread by the canvas/channels users.

Changes

  • Task threads are now human-only. The thread panel no longer mirrors the agent's live turns, the prompt echoes, or the agent status line.
  • Removed the live-session wiring in the panel (useSessionViewState/useSessionConnection/useConversationItems) that was subscribing to the agent session purely to feed the thread — this also stops pinning an agent process alive just for the panel.
  • Simplified buildThreadTimeline to a single human-message row kind and dropped the now-unused agent-turn/status helpers.
  • The human @agent forward action (task author sending a thread message to the agent) is unchanged, as are backend-authored announcement rows.

How did you test this?

  • pnpm --filter @posthog/core --filter @posthog/ui typecheck — clean.
  • pnpm --filter @posthog/core exec vitest run src/canvas/threadTimeline.test.ts — pass.
  • pnpm --filter @posthog/ui exec vitest run src/features/canvas/components/ThreadPanel.test.tsx — pass.
  • biome check on the changed files — clean.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog from a Slack thread

Stop mirroring the agent's live conversation into the task thread panel. Threads now show human discussion only; the agent's turns, prompt echoes, and status line no longer post into the thread.

Removes the live-session wiring in the panel that also pinned an agent process alive purely to feed the thread. The human @agent forward action is unchanged.

Generated-By: PostHog Code
Task-Id: 8261c40f-2fbf-4334-a4e7-e61bf1c332fc
@trunk-io

trunk-io Bot commented Jul 22, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 3d51286.

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