Skip to content

fix(mobile): stop showing an expired agent count in the Dynamic Island - #41641

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
SSHdotCodes:fix/mobile-stale-island-count
Nov 23, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
SSHdotCodes:fix/mobile-stale-island-count

Conversation

@SSHdotCodes

@SSHdotCodes SSHdotCodes commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

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):

stale-island-before

After (the same stale activity says "Out of date"):

stale-island-after

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.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 23, 2026
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

Commits

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.”

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

Change: Bug fix

Possibly related PRs

Suggested reviewers: macroscopeapp

Merge Risk: Minimal · previous review 66454

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: Passed 4

Check name Status Explanation
Title check Passed 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 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.
Description check Passed 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
Recent review info

Run configuration

Commits

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.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 23, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

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.

Before After
Before: stale rows but leading count remains 2 After: leading label and rows read Out of date
b5e1f91cba 70fe49671b

Before recording · After recording

Seed script · Launcher setup · Reproduction details

Not shown:

  • Non-English localized labels were not exercised.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 23, 2026
@juliusmarminge
juliusmarminge merged commit 2621031 into pingdotgg:main Nov 23, 2026
55 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 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