Skip to content

fix(canvas): show only team messages in thread sidebar on full task view#3593

Draft
adboio wants to merge 1 commit into
mainfrom
posthog-code/thread-sidebar-hide-agent-comms-on-full-task
Draft

fix(canvas): show only team messages in thread sidebar on full task view#3593
adboio wants to merge 1 commit into
mainfrom
posthog-code/thread-sidebar-hide-agent-comms-on-full-task

Conversation

@adboio

@adboio adboio commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Problem

On the full task view (/website/$channelId/tasks/$taskId), the right-hand thread sidebar is rendered next to TaskDetail, which already hosts the agent session. The sidebar's timeline interleaved agent turns and user→agent prompts with the team conversation, so expanding a task from the channel-home thread left the same agent comms duplicated across both panes — the sidebar should show only the human-to-human conversation.

Changes

  • Added a showAgentComms prop (default true) to ThreadPanel / ThreadSidebar. When false, it drops agent turns and user→agent prompts from the timeline and hides the agent status line.
  • The channel task detail route passes showAgentComms={false}, so its sidebar shows only team messages.
  • The channel-home thread sidebar is unchanged (still shows the full timeline).

How did you test this?

  • pnpm --filter @posthog/ui typecheck — no new errors in the touched files (remaining errors are pre-existing missing-host-module resolution unrelated to this change).
  • vitest run for threadPanelStore.test.ts and WebsiteLayout.test.tsx — pass.
  • biome check on the three changed files — clean.

Why

You end up with the full-screen task open and the same agent conversation duplicated in the thread sidebar; the sidebar should carry the team discussion only, since the agent session already lives in the main task pane.


Created with PostHog Code

The channel task detail route renders the thread sidebar next to TaskDetail,
which already hosts the agent session. The sidebar's timeline interleaved
agent turns and user→agent prompts with the team conversation, so expanding
a task from the channel-home thread left the same agent comms duplicated in
both panes.

Add a showAgentComms prop (default true) to ThreadPanel/ThreadSidebar that
drops agent turns and prompts from the timeline and hides the agent status
line. The full task view passes false, so its sidebar shows only the
human-to-human thread. The channel-home sidebar is unchanged.

Generated-By: PostHog Code
Task-Id: c44f7e31-52a1-404e-8eda-0d21860bf272
@trunk-io

trunk-io Bot commented Jul 20, 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 c88c609.

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