Skip to content

fix(web,mobile): expanded agent and automation messages no longer repeat their first line in the header - #29373

Open
zmm2025 wants to merge 11 commits into
pingdotgg:mainfrom
zmm2025:fix/expanded-thread-embed-header-title
Open

zmm2025 wants to merge 11 commits into
pingdotgg:mainfrom
zmm2025:fix/expanded-thread-embed-header-title

Conversation

@zmm2025

@zmm2025 zmm2025 commented Nov 2, 2026 •

Copy link
Copy Markdown

Problem

Messages from other agents and automation prompts fold into a one-line header: the sender (or "Automation") followed by the message's first line. Expanding the fold keeps that first line in the header, so it is shown twice, once in the header and again as the first line of the body directly below it.

Change

When the fold is expanded, the header drops the first-line preview and shows only the sender thread's title (or "Automation"), which then takes the full header width. Collapsed headers are unchanged. An automation header still keeps its scheduled task's title when expanded, since that title is not repeated in the body.

This covers every place the fold header renders: agent and automation messages in the web timeline, the same two kinds of queued messages in the web queue, and the matching mobile rows.

Scope and approval

A small, focused fix for an obvious visual duplication, with no prior issue or discussion.

Verification

  • Added assertions to the existing MessagesTimeline.browser.test.tsx fold cases. They fail on main and pass with this change. The agent-message header and the automation header without a task title drop the preview when expanded, and the automation header with a task title keeps that title.
  • vp run check:changed: format, lint, knip, typecheck (web, mobile, and dependents) and the React compiler check pass. One existing test, keeps the worked-for heading in place when expanded at the bottom, fails on this Windows machine on an unmodified main checkout too, and it renders no folded messages.
  • Checked by hand in a local dev build, using a throwaway thread that receives a message from another thread:

Before (collapsed, then expanded)

Before: the expanded header repeats the message's first line

After (collapsed, then expanded)

After: the expanded header shows only the sender thread's title

I could not run the mobile change on a device here (Windows, no simulator). It typechecks, and it mirrors the web logic.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 2, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 138f55c

Macroscope's review found this PR approvable — Expanded agent and automation messages stop repeating their first line in the header, while collapsed previews and automation task titles remain. The changes are limited to presentation and preserve message bodies and expansion controls.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Expanded automation and agent message rows suppress selected preview summaries. Collapsed rows retain applicable task titles or preview lines. Mobile headers adjust accessibility labels and sender-label width. Browser tests check row text after expansion.

Changes: Expanded message rows

Layer / File(s) Summary
Choose summaries by expansion state
apps/web/src/components/chat/QueuedRunsControl.tsx, apps/web/src/components/chat/TimelineUserMessageRow.tsx, apps/mobile/src/features/threads/ThreadFeed.tsx
Automation and agent rows suppress preview summaries when expanded. Collapsed rows retain the applicable task title or preview line.
Render expanded row headers
apps/web/src/components/chat/TimelineUserMessageRow.tsx, apps/mobile/src/features/threads/ThreadFeed.tsx, apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
Headers omit or hide empty summaries and adjust sender-label width. Browser tests check task-title visibility and confirm that expanded rows omit preview text.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: bugfix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review 95814

This change removes the duplicated first line from expanded agent and automation message headers on web and mobile. It carries no data, security, or availability risk and can be reverted without side effects. It is ready to merge, with native mobile rendering still to be checked on a device.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and the affected surfaces: expanded agent and automation message headers no longer repeat the first line. It matches the main change in the summary and objectives, and it follo…
Description check Passed The description follows the template's sections. Problem, Change, Scope and approval, and Verification are all filled in. The Problem and Change sections explain the duplicated first line and the fix.…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix and the affected surfaces: expanded agent and automation message headers no longer repeat the first line. It matches the main change in the summary and objectives, and it follows the conventional commit form the template suggests.

Full details: Description check

Explanation

The description follows the template's sections. Problem, Change, Scope and approval, and Verification are all filled in. The Problem and Change sections explain the duplicated first line and the fix. Scope explains why no issue exists, which the template allows for a small obvious fix. Verification lists the focused browser test assertions, the check run with its one baseline failure, and a manual check with before and after screenshots. It also states what was not tested, which is the mobile device run. The template asks for the model and harness only when an agent did the work, and the description does not mention one. That is not a required gap. The description does not name a model, and the template does not require one unless an agent was used.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7f6bbfc and 9581445.

Files selected for processing: 4

  • apps/mobile/src/features/threads/ThreadFeed.tsx
  • apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
  • apps/web/src/components/chat/QueuedRunsControl.tsx
  • apps/web/src/components/chat/TimelineUserMessageRow.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

@zmm2025

zmm2025 commented Nov 2, 2026 •

Copy link
Copy Markdown
Author

lowkey didn't even realize my agent filed this on its own, oops

@maria-rcks

maria-rcks commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

takeover verification, 2026-11-18

merged current github/main (9431a9479faf) into the contributor head without rebasing. pushed merge commit 44997b3b258740d8a0bc9ee5aa783d53c5ee0b27 to the existing fork branch. no source edits or scope expansion: the diff remains four files, 44 insertions and 19 deletions.

vp run check:changed 9431a9479faf0ae89a4e5cdbb061ce5f478b15c7 passed through blacksmith: format, lint, both knip passes, web/mobile/scripts typechecks, 78 browser tests and 8 react compiler checks. the earlier aggregate ci failure came from cancelled jobs; the new head has no pending or failing checks and no conflicts. two independent read-only reviews approved this exact head. no unresolved review threads remain.

the mobile accessibility finding is already addressed. the synchronous-assertion finding was withdrawn after inspection of the awaited click helper; no change was needed.

current-head manual verification reached the real dev web client through playwright and system chrome. the expanded-header interaction was covered by the passing browser tests, but was not manually repeated through a provider turn in this run. native mobile, desktop, and relay/tunnel remain unverified. the earlier real-provider captures below are historical evidence, preserved with their original head identifiers.


Verified in a real dev environment

verified head 8831d2bc269a21de68a3f7436e2ec7126935ad3f on linux with the dev web client, repository playwright, /usr/bin/google-chrome, and real codex gpt-6.1-sol turns. no mocks, fixtures, replay provider, or database injection.

i reproduced the duplicated agent header and automation fallback header on github/main (71646e031a), then stopped that server and started this exact head with a copy of the same app-created data. the project points at a real git repository.

  • expanded agent headers show the sender title and leave both message lines in the body. collapsed headers restore the preview.
  • expanded automation headers without a task title show only "Automation". live task titles remain visible when expanded.
  • real agent messages and manual automation runs complete on this head. queued agent and automation messages show the same header behavior, including the deleted-task fallback. both queued turns subsequently ran and returned their expected replies.
  • source-thread navigation, ordinary user messages, light/dark appearance, and an 800px-wide web viewport still work.

before, main:

main expanded agent header repeats the first line

after, this head with the same message:

pr expanded agent header shows only the sender title

before, main automation fallback:

main expanded automation fallback repeats the first line

after, this head with the same prompt:

pr expanded automation fallback shows only automation

queued messages on this head, retaining a live task title:

expanded queued agent and automation messages preserve their bodies

checks ran through blacksmith:

vp test run apps/web/src/components/chat/MessagesTimeline.browser.test.tsx \
  -t "MessagesTimeline automation prompts|MessagesTimeline agent messages"
8 passed

vp run check:changed 22b5252467aef991517afb0155be57f5c9eb301e
format, lint, both knip passes, web/mobile/scripts typechecks: passed
browser tests: 40 passed, 1 failed

the failing test is keeps the worked-for heading in place when expanded at the bottom. i separately ran that exact test in a clean worktree at the unchanged pr base 22b5252467ae; it fails there too with the same scroll-position assertion (577 vs 473). the changed fold cases pass. github ci is green. no source changes were needed.

Not verified

native ios/android rendering and accessibility labels, the electron shell on macos/windows, other providers, and relay/tunnel connections were not exercised on this linux web setup. mobile typechecking passed; it does not prove native behavior. the full changed-file check remains red because of the reproduced baseline scroll test above.

Jacksondr5 added a commit to Jacksondr5/j5code that referenced this pull request Nov 7, 2026
Takes the shape of pingdotgg#29373: an open fold drops its summary
and the label takes the row. J5's open header names the sender, so the
toggle keeps a name, and on mobile the label grows so the chevron stays
at the end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Jacksondr5 added a commit to Jacksondr5/j5code that referenced this pull request Nov 7, 2026
…#946)

* fix(web): expanding an agent message no longer repeats its first line

Closes #945

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): follow upstream's fold-header fix, naming the sender once open

Takes the shape of pingdotgg#29373: an open fold drops its summary
and the label takes the row. J5's open header names the sender, so the
toggle keeps a name, and on mobile the label grows so the chevron stays
at the end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): keep the fold summary when the body does not open with it

A Crew seat's brief previews its task, but its body opens with the
Crew's facts; a playbook step previews its title, and a question its
situation. Only a summary that is the body's first line goes once open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
zmm2025 and others added 2 commits November 10, 2026 17:38
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 14, 2026
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 15, 2026
…mbed-header-title

# Conflicts:
#	apps/mobile/src/features/threads/ThreadFeed.tsx
#	apps/web/src/components/chat/QueuedRunsControl.tsx
#	apps/web/src/components/chat/TimelineUserMessageRow.tsx
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 18, 2026
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 22, 2026
…mbed-header-title

# Conflicts:
#	apps/web/src/components/chat/TimelineUserMessageRow.tsx
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 23, 2026
…mbed-header-title

# Conflicts:
#	apps/web/src/components/chat/QueuedRunsControl.tsx
…mbed-header-title

# Conflicts:
#	apps/mobile/src/features/threads/ThreadFeed.tsx

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants