Skip to content

feat(ios): support session goals in chat - #7386

Open
me2seeks wants to merge 3 commits into
feat/ios-chat-telemetry-unified-sendfrom
feat/ios-session-goal
Open

me2seeks wants to merge 3 commits into
feat/ios-chat-telemetry-unified-sendfrom
feat/ios-session-goal

Conversation

@me2seeks

@me2seeks me2seeks commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stacked on #7385 (feat/ios-chat-telemetry-unified-send).

  • Modular iOS Session Goal architecture: Adds app/state/goal.ts and app/screens/chats/GoalSheet.tsx backed strictly by existing Host RPCs (agent.goal, agent.watchGoal, agent.changeGoal) with zero Host protocol changes.
  • Chat chrome & transcript integration:
    • Places Goal entry in the navigation ⋯ menu (shared between UIKit headerRightItems and headless ScreenHeader, independent of canAskSide()), coexisting cleanly with Track 3's ⓘ Session Details button.
    • Appends a read-only short status tag to the top context capsule in regular height (gracefully omitting the Goal tag on narrow/large-text screens when space runs out; 0pt extra chrome in compact landscape).
    • Binds forked Side Chats to their own child sessionId, skips subscriptions/entry for Rooms and unforked Side Drafts, renders origin.kind === 'goal' as a quiet transcript divider, and excludes internal Goal continuations from visibleQueue (Pending Dock counts, previews, and edit actions).
    • Propagates Track 3's saved model / serviceTier / thinkingLevel preference into changeGoal approval backend when creating a Goal.
  • All 7 Goal statuses & safe controls:
    • Covers ready, active, paused, blocked, budget_limited, achieved, and cancelled, accurately surfacing lower-bound token consumption / unknown remaining budget when missing > 0.
    • Allows cancel and non-pending complete from budget_limited, pre-fills the prior token budget for atomic resume + budget adjustments (never silently defaulting to unlimited null), locks in-flight edit forms read-only until commit readback settles, supports in-place watchGoal reconnect without losing draft edits, blocks Objective submission during IME composition with Rust-aligned Unicode whitespace trimming, and calls NSH announce() for asynchronous VoiceOver errors.
    • Respects top safe area (375×812 + 47pt top + 320pt keyboard) and landscape safe areas (844×390 + 240pt keyboard + 47pt left/right) with >= 4.5:1 light/dark resting and pressed contrast.

Verification

  • maka-ios-shell: 143 passed (16 lib, 123 behavior including all 13 Goal regressions + Track 3/4 cross-track thinkingLevel propagation regression, 4 language).
  • aarch64-apple-ios --locked check, tsc --noEmit, ASF license headers, Rust dependencies, migration lock, 12-locale i18n, Biome, cargo fmt --check, and git diff --check 58b7bec52b..HEAD all passed.

Known test gaps

  • Layout, contrast, safe-area, and announce emission were verified in headless NSH/Rust suites; physical iPhone VoiceOver audio and live UIKit haptics were not performed.

Screenshots

Captured on iPhone 18 Pro Simulator (iOS 27.2, integrated preview build):

Top Goal in Progress status capsule and GoalSheet with token usage and Edit Budget

Keep the native navigation title, float the context and composer, and let the transcript follow the measured composer and keyboard clearance without changing delivery.

Generated-by: Maka

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant