You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(mobile): stop showing an expired agent count in the Dynamic Island - #41641
Once the agent Live Activity passes its staleDate, iOS renders it with isStale. AgentActivity then marks in-flight rows "Out of date" and swaps the count-based labels for "Out of date" in the banner, the compact trailing view and the minimal view. The expanded Dynamic Island's leading region was missed: it still renders props.activeCount beside the logo. So an activity that no longer knows whether anything is running still shows "2" next to two rows that each say "Out of date".
Expected: the expanded leading region says "Out of date" like every other region of a stale activity.
Change
apps/mobile/src/widgets/AgentActivity.tsx: the expanded leading text uses activeLabel when the activity is done or stale, and the count otherwise. activeLabel is the label the other regions already use: "Done"/"Failed" when all work finished, "Out of date" when stale.
New apps/mobile/src/widgets/AgentActivity.test.ts: renders a stale activity with two running agents and checks the expanded leading region shows "Out of date", not "2".
Scope
One-line mobile widget fix; no tracking issue.
Verification
How I found it: a bug hunt over a fork of T3 Code, where an expired Live Activity still showed a running count in the expanded Island.
RED on origin/main (1002934541): vp test run src/widgets/AgentActivity.test.ts in apps/mobile fails: expected '{"type":"HStack",…' not to contain '"children":"2"'.
GREEN on this branch: 1 passed (1). effect-tsgo tsrs --noEmit in apps/mobile and the pre-commit vp fmt, vp lint and knip:check passed.
iOS simulator (iPhone 18 Pro, iOS 27), Debug build: a dev-only fixture (not committed) started an activity with two running agents and an 8-second staleDate. After the deadline passed, the Island was long-pressed to show the expanded view. One native build; Metro served the origin/main and branch layouts.
Screenshots
Before (stale activity, the count "2" beside the logo):
After (the same stale activity says "Out of date"):
Agent: GPT-6.2 Sol (Codex) found and fixed this in a fork of T3 Code and took the simulator screenshots; Claude Opus 5.5 (Claude Code) ported and tested it here.
Reviewing files that changed from the base of the PR and between 6645459 and 70fe496.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The expanded-leading layout now uses activeLabel when all agents are done or the activity is stale. A new test checks the stale layout with two activities.
Changes: Live Activity labels
Layer / File(s)
Summary
Expanded-leading label selection and test apps/mobile/src/widgets/AgentActivity.tsx, apps/mobile/src/widgets/AgentActivity.test.ts
The expanded-leading layout uses activeLabel when all agents are done or the activity is stale. The test checks that a stale layout omits the count and includes “Out of date.”
The Dynamic Island shows "Out of date" instead of an expired agent count. The change is small and covered by a test, and no merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: the expanded Dynamic Island leading region for mobile agent Live Activities no longer shows a count once the activity is stale. It uses the repo's conventional commit …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description follows the repository template closely. It has Problem, Change, Scope, and Verification sections, and each is substantive. The Problem section states the bug and the expected behavior…
Full details: Title check
Explanation
The title names the main change: the expanded Dynamic Island leading region for mobile agent Live Activities no longer shows a count once the activity is stale. It uses the repo's conventional commit format, and the diff matches it: AgentActivity.tsx now uses activeLabel when stale or done.
Full details: Description check
Explanation
The description follows the repository template closely. It has Problem, Change, Scope, and Verification sections, and each is substantive. The Problem section states the bug and the expected behavior. The Change section names the two touched files and the logic change. The Scope section explains why no tracking issue is linked, which the template permits for a small obvious fix. The Verification section gives a RED/GREEN test run on origin/main and the branch, lint and type checks, and simulator steps with before/after screenshots. It also names the agents used, as the template asks. The title line is not in the description body, so the conventional-commit title cannot be checked here. The description is specific and complete enough to pass.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between d08986a and 6645459.
Files selected for processing: 2
apps/mobile/src/widgets/AgentActivity.test.ts
apps/mobile/src/widgets/AgentActivity.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Evidence: iPhone 18 Pro simulator, iOS 27.2, English, light appearance, 402×874 logical points on both sides. Started the same two running agents through the real AgentActivity API with a ten-minute stale date. Opened Settings, expanded the fresh Island, collapsed it, waited without updates past expiry, then expanded again. Both fresh views showed 2 and Working rows. After expiry, base retained 2 while head showed Out of date. Final captures were inspected and matched repeated captures pixel-for-pixel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Once the agent Live Activity passes its
staleDate, iOS renders it withisStale.AgentActivitythen marks in-flight rows "Out of date" and swaps the count-based labels for "Out of date" in the banner, the compact trailing view and the minimal view. The expanded Dynamic Island's leading region was missed: it still rendersprops.activeCountbeside the logo. So an activity that no longer knows whether anything is running still shows "2" next to two rows that each say "Out of date".Expected: the expanded leading region says "Out of date" like every other region of a stale activity.
Change
apps/mobile/src/widgets/AgentActivity.tsx: the expanded leading text usesactiveLabelwhen the activity is done or stale, and the count otherwise.activeLabelis the label the other regions already use: "Done"/"Failed" when all work finished, "Out of date" when stale.apps/mobile/src/widgets/AgentActivity.test.ts: renders a stale activity with two running agents and checks the expanded leading region shows "Out of date", not "2".Scope
One-line mobile widget fix; no tracking issue.
Verification
origin/main(1002934541):vp test run src/widgets/AgentActivity.test.tsinapps/mobilefails:expected '{"type":"HStack",…' not to contain '"children":"2"'.effect-tsgo tsrs --noEmitinapps/mobileand the pre-commitvp fmt,vp lintandknip:checkpassed.staleDate. After the deadline passed, the Island was long-pressed to show the expanded view. One native build; Metro served theorigin/mainand branch layouts.Screenshots
Before (stale activity, the count "2" beside the logo):
After (the same stale activity says "Out of date"):
Agent: GPT-6.2 Sol (Codex) found and fixed this in a fork of T3 Code and took the simulator screenshots; Claude Opus 5.5 (Claude Code) ported and tested it here.