Repository navigation
fix(ios): keep the waiting-for-approval ask on stale Live Activities - #351
Merged
Merged
Conversation
A run waiting for approval is still blocked on the user after the phone stops receiving updates, but staleness replaced its Lock Screen line with "Latest status shown". A shared pure AgentRunStalePresentation now picks the stale copy: waitingForApproval keeps its title and adds "Open to answer" on the Lock Screen and expanded Dynamic Island; every other stale status keeps "Latest status shown". Stale styling is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across the shared iOS state helper, both Live Activity presentations, regression tests, and the project memory update.
- Stale approval copy: Preserves “Waiting for approval” and adds “Open to answer” for stale waiting states, while retaining generic stale copy for other non-final states.
- Widget presentation: Updates the Lock Screen lead and transcript panel, and prioritizes the approval action over older reply text in the expanded Dynamic Island without changing stale styling or navigation.
- Reducer fallback: Uses the waiting title when a stale waiting state has an empty activity line, without changing persisted fields or progress timestamps.
- Behavioral coverage: Adds exact-output assertions for fresh and both stale signals, final-state suppression, and legacy state decoding; documents the behavior in project memory.
Swift syntax parsing passed for all three changed Swift files. Native XCTest and widget rendering could not be independently run on this Linux runner because xcodebuild is unavailable; the exact-head iOS simulator CI job was still running when checked, so merge remains contingent on its success.
gpt-6.1-sol | 𝕏
sambitcreate
enabled auto-merge
October 6, 2026 02:50
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
When a Live Activity went stale, the Lock Screen's activity line always said "Latest status shown". That also happened when the run was waiting for approval, so the one state that needs the user looked like generic stale progress.
AgentRunStalePresentation.copy(for:systemMarkedStale:)inAgentRunActivityAttributes.swift:waitingForApproval→ lead "Waiting for approval", action "Open to answer"nil(each surface keeps its existing lead)AgentRunActivityStateReducer.stale()falls back to the same lead when the activity line is empty.The approach follows the Hermex stale-Bot fix (uzairansaruzi/hermex#842) but without Bot-specific "Not connected" copy, which Aiden doesn't have.
Decisions
waitingForApprovalgets the exception. Aiden has no separate clarification status.ContentStatefield changes. The decision is computed at render time, so states encoded by older builds decode as before. A test covers a legacy payload.Testing
xcodebuild test(Xcode-beta, iPhone 17e simulator, derived data inside the worktree)-only-testing:AidenOnTheGoTests/AidenNativeIntegrationTests: TEST SUCCEEDED, 29 passed, 0 failed. This build also compiled theAidenLiveActivityWidgettarget.AgentRunActivityStatus× fresh / reducer-stale / system-stale; finished run never presents as stale waiting; legacy-encoded stale waiting state decodes and keeps the waiting lead.~/Downloads/Xcode.app) could not run simulator tests locally: CoreSimulator version mismatch.🤖 Generated with Claude Code