Extend Done display to 15 minutes and show up to 5 Live Activity banner rows#3761
Conversation
The banner layout already renders five rows; the server capped aggregates at three. Raise MAX_ACTIVITY_ROWS to 5 (shared constant, exported) and bump TERMINAL_AGENT_ACTIVITY_DISPLAY_TTL_MS from 5 to 15 minutes so finished threads stay visible longer. The expanded Dynamic Island keeps its three-row height budget; the 30-minute cron prune still outlives the display window. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Approved Simple configuration changes adjusting UI display parameters - extending the terminal activity display time from 5 to 15 minutes and increasing max activity rows from 3 to 5. Tests are updated accordingly. Low-risk, self-contained changes. You can customize Macroscope's approvability policy. Learn more. |
Follow-up to #3685, server-side only (relay deploy, no app rebuild — the banner layout already renders five rows; the server was the limiter).
TERMINAL_AGENT_ACTIVITY_DISPLAY_TTL_MS5 → 15 minutes: finished threads keep their Done/Failed row on the card longer. The 30-minute cron prune still outlives the display window.MAX_ACTIVITY_ROWS3 → 5 (exported fromagentActivityPayloads.ts);makeAggregateState's hand-rolledslice(0, 3)s now use the shared constant. Active agents keep slot priority over finished ones, but "3 working + 1 done" now shows the Done row instead of crowding it out.🤖 Generated with Claude Code
Note
Low Risk
Server-side relay tuning of display TTL and row limits with matching test updates; no auth or data-model changes, deploy-only for clients.
Overview
Relay-only follow-up that aligns iOS Live Activity payloads with the client banner (five rows) and keeps Done/Failed rows visible longer.
TERMINAL_AGENT_ACTIVITY_DISPLAY_TTL_MSgoes from 5 to 15 minutes, so recently finished threads stay on the aggregate card before they drop off.MAX_ACTIVITY_ROWSis raised from 3 to 5, exported fromagentActivityPayloads.ts, and wired throughmakeAggregateStateand sanitization instead of hard-codedslice(0, 3). Active agents still fill slots first; with five slots, more in-flight work fits on the lock-screen banner without crowding out completions.Tests are adjusted for the new TTL boundary (~16 minutes drops stale Done rows), five active rows in slot-priority cases, and APNs payload caps at five sanitized activities.
Reviewed by Cursor Bugbot for commit 189943a. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Extend Done/Failed display to 15 minutes and show up to 5 Live Activity banner rows
TERMINAL_AGENT_ACTIVITY_DISPLAY_TTL_MSfrom 5 to 15 minutes inAgentActivityPublisher.ts, keeping finished threads visible longer while other agents are active.MAX_ACTIVITY_ROWSfrom 3 to 5 inagentActivityPayloads.tsto match the Live Activity banner's capacity (expanded Dynamic Island still shows top 3).makeAggregateStateto useMAX_ACTIVITY_ROWSinstead of hardcoded slices of 3 for both active-only and active+terminal paths.Macroscope summarized 189943a.