Repository navigation
fix(android): keep completed subagent activity visible for sixty seconds - #122089
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 11, 2026, 4:58 PM ET / 20:58 UTC. ClawSweeper reviewWhat this changesThis PR makes Android retain completed subagent activity for 60 seconds from its first local terminal observation and adds regression coverage for stale Gateway timestamps and an in-window duplicate terminal update. Merge readiness⛔ Blocked by patch quality or review findings - 5 items remain The prior lifecycle blocker remains: a duplicate terminal event received after the 60-second cleanup recreates the Android activity row and starts a new window, so this PR is not ready to merge. Priority: P2 Review scores
Verification
How this fits togetherGateway task events enter Android’s chat controller, which turns them into visible subagent activity rows. The controller schedules completed rows for removal, affecting what Android chat users see after a subagent finishes. flowchart LR
A[Gateway task event] --> B[Android chat controller]
B --> C{Working or terminal}
C -->|Working| D[Cancel expiry]
C -->|First terminal| E[Start 60-second timer]
C -->|Duplicate terminal| F[Update activity details]
E --> G[Remove activity row]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceOther +40. Total +40 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the first terminal-observation deadline separately from the visible row, clear it only on a new working transition, explicit deletion, or session reset, and add a post-expiry duplicate-terminal regression. Do we have a high-confidence way to reproduce the issue? Yes, from source: deliver a terminal task, advance 60 seconds until cleanup removes it, then deliver a duplicate terminal task; the absent row satisfies the proposed first-terminal branch and is recreated. Is this the best way to solve the issue? No. The visible row currently owns the only local terminal-observation fact, so cleanup loses the deadline; a separate per-task deadline/tombstone is the narrower durable owner-boundary fix. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 776c19eaaa4b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
80bac63 to
455304e
Compare
455304e to
d9d3130
Compare
d9d3130 to
c78d37f
Compare
c78d37f to
f3e895b
Compare
|
Merged via squash.
|
* origin/main: (1725 commits) fix(agents): preserve reply cleanup when cancellation throws (#122252) fix(ui): render disallowed link schemes as plain text (#122311) fix(test): isolate gateway helper env stubs (#122319) fix(ui): keep chat Markdown block rhythm consistent (#122289) test(cli): trim duplicate Hooks process cases (#122278) fix(ui): retain identity while agent roster loads fix(ui): preserve configured agent labels fix(plugins): keep startup convergence read-only (#122330) fix: preserve WebChat reply context after reloads (#122169) fix(ui): make DONE moves visibly reversible (#122303) fix(ui): keep inline-code punctuation attached (#122291) fix(google-meet): publish exports atomically (#122306) fix(channels): preserve failed agent run reactions (#122009) fix(ui): label patch file operations accurately (#122287) fix(windows): preserve Unicode LAN route aliases (#122263) test(media): synchronize transcode pool completion (#122279) fix(android): keep completed subagent activity visible for sixty seconds (#122089) fix(ui): humanize bare GitHub item links (#122285) refactor(qqbot): install plugin from Tencent package (#107295) chore: scope SQLite session lifecycle CI (#121917) ...
…nds (openclaw#122089) * fix(android): retain terminal subagent activity locally * chore(android): preserve native i18n inventory
What Problem This Solves
Fixes an issue where Android chat users could see completed subagent activity disappear before the promised 60-second retention window when Gateway timestamps were delayed or clock-skewed. Main now computes its coroutine delay from one clock sample (#122198), but still treats remote
endedAtas the retention owner and restarts expiry on duplicate terminal updates; this PR closes those remaining user-visible lifecycle gaps.Why This Change Was Made
Android retention now starts on the first local working-to-terminal observation, matching the Apple and Web clients. Remote task timestamps remain presentation data, duplicate terminal updates preserve the original deadline, working transitions cancel expiry, and only the authoritative scheduled job may clean up the row.
The focused repair is production net-zero (+8/-8) relative to current main. It carries no generated locale or UI files; the second commit only preserves the source line positions recorded by the native-i18n inventory.
User Impact
Completed subagent rows remain visible for a full 60 seconds after Android first observes completion, even when the Gateway terminal timestamp is old. Later terminal detail updates no longer extend that window.
Evidence
ChatControllerSubagentActivityTest.terminalActivityExpiresAfterSixtySeconds, 1 failure among 2,227 tests).80bac63fd553584a78dd23c31ce060d95c55cada: all six Android jobs passed in https://github.com/openclaw/openclaw/actions/runs/31505347510.d9d3130ebb2c92d529e0ac7119976fbb8695fb78: all six Android jobs passed in https://github.com/openclaw/openclaw/actions/runs/31514662871.c78d37f1879dde2059ae67d99425756c0532a7ea: every selected job passed in https://github.com/openclaw/openclaw/actions/runs/31521311816.677583ebf9c52e1005115468a71c05c1d6f205d3, resolving the overlap with main refactor(tasks): simplify subagent activity tracking #122198.:app:ktlintCheckpassed on the final head.