Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(ios): pop the live activity state mark on every phase change
leepokai558f9a38131e
diff --git a/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift b/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swiftindex 64e5c196..67b4a8b3 100644--- a/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Design/ActivityCards.swift@@ -38,10 +38,12 @@ public extension BotActivityPresentation {}public extension AnyTransition {- /// The bot's face on a phase change: the old one grows out, the new one grows in.+ /// The bot's face and the state mark on a phase change: the old one bursts out larger+ /// while the new one grows in from small and overshoots (with `Motion.activityPop`).+ /// Built-in transitions only: Live Activities don't run custom ones.static var activityFace: AnyTransition {- .asymmetric(insertion: .scale(scale: 0.55).combined(with: .opacity),- removal: .scale(scale: 1.15).combined(with: .opacity))+ .asymmetric(insertion: .scale(scale: 0.2).combined(with: .opacity),+ removal: .scale(scale: 1.6).combined(with: .opacity))}/// Rows a new phase brings (the Review button, the timer): rise and fade in.@@ -68,7 +70,7 @@ public struct ActivityAvatar: View {.transition(.activityFace)}.frame(width: size, height: size)- .animation(Motion.activityPhase, value: state.phase)+ .animation(Motion.activityPop, value: state.phase)}}@@ -176,17 +178,21 @@ public struct BotActivityIndicator: View {}public var body: some View {- Group {- if let orb = state.orbState {- ThinkingOrb(state: orb, size: size, color: state.tint, animated: false)- } else {- Image(systemName: state.symbol).font(.system(size: size * 0.6, weight: .semibold))- .transition(.activityFace)+ // A new mark per phase (orb → orb too: working → needs you), so every change pops.+ ZStack {+ Group {+ if let orb = state.orbState {+ ThinkingOrb(state: orb, size: size, color: state.tint, animated: false)+ } else {+ Image(systemName: state.symbol).font(.system(size: size * 0.6, weight: .semibold))+ }}+ .id(state.phase)+ .transition(.activityFace)}.frame(width: size, height: size).foregroundStyle(state.tint)- .animation(Motion.activityPhase, value: state.phase)+ .animation(Motion.activityPop, value: state.phase).accessibilityElement().accessibilityLabel(state.title)}@@ -207,7 +213,11 @@ public struct ActivityIslandFooter: View {if state.phase == .needsInput {ActivityReviewButton(state: state, link: link)} else if let since = state.elapsedStart(startedAt) {- Label { Text(since, style: .timer).monospacedDigit() } icon: { Image(systemName: "timer") }+ // One centered Text: a timer Text claims its widest width, so as a Label it+ // sat left of center.+ Text("\(Image(systemName: "timer")) \(Text(since, style: .timer))")+ .monospacedDigit()+ .multilineTextAlignment(.center).font(.system(size: 12)).foregroundStyle(Palette.secondary).frame(maxWidth: .infinity)diff --git a/apps/ios/Kit/Sources/CodyncKit/Design/Motion.swift b/apps/ios/Kit/Sources/CodyncKit/Design/Motion.swiftindex 3cbc09a8..162efd9f 100644--- a/apps/ios/Kit/Sources/CodyncKit/Design/Motion.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Design/Motion.swift@@ -23,6 +23,9 @@ public enum Motion {/// A Live Activity's phase change (working → needs you → done): a soft spring that/// finishes well inside the 2 s iOS gives activity updates.public static let activityPhase = Animation.spring(duration: 0.6, bounce: 0.3)+ /// The state mark and the bot's face swapping on a phase change: a bouncier spring so the+ /// new one overshoots as it lands.+ public static let activityPop = Animation.spring(duration: 0.7, bounce: 0.5)/// `--ui-press-scale`.public static let pressScale: CGFloat = 0.98diff --git a/docs/design/mobile-widgets.md b/docs/design/mobile-widgets.mdindex 5eb2b772..4fd4fefb 100644--- a/docs/design/mobile-widgets.md+++ b/docs/design/mobile-widgets.md@@ -59,7 +59,7 @@ State 分頁的 Live Activity 頁顯示鎖定畫面形式,Dynamic Island 頁| Minimal | 只有 orb(或結束符號),VoiceOver 包含 bot 名稱 || Expanded | bot、上色的一行說明、orb;底部是經過時間,待回應時換成 Review;整塊點擊回到對話 |-狀態色:待回應琥珀(`Palette.attention`)、失敗紅、完成綠;工作中的說明維持灰色,只有需要注意的狀態跳出來。經過時間用 `Text(startedAt, style: .timer)` 由系統自己往上數,不需要推播(`startedAt` 已在 remote content state 裡)。狀態切換時頭像舊臉放大淡出、新臉縮放進場,文字用 `.contentTransition(.interpolate)`,Review/時間列由下往上進場,全部用 `Motion.activityPhase`(0.6 s spring,在 iOS 給 activity 更新的 2 s 內)。Review 只開啟對話,核准仍在 App 的 permission card。+狀態色:待回應琥珀(`Palette.attention`)、失敗紅、完成綠;工作中的說明維持灰色,只有需要注意的狀態跳出來。經過時間用 `Text(startedAt, style: .timer)` 由系統自己往上數,不需要推播(`startedAt` 已在 remote content state 裡)。狀態切換時頭像和右側狀態記號(orb、勾號、警告)一起「爆出再彈入」:舊的放大到 1.6 倍淡出,新的從 0.2 倍長出並回彈(`Motion.activityPop`,0.7 s、bounce 0.5);orb 換 orb(工作中 → 待回應)也會彈。文字用 `.contentTransition(.interpolate)`,Review/時間列由下往上進場(`Motion.activityPhase`,0.6 s)。全部在 iOS 給 activity 更新的 2 s 內,而且只用內建 transition,因為 Live Activity 不執行自訂 transition。展開島底部的時間是單一置中 Text(圖示內嵌),避免 timer Text 佔滿寬度後偏左。Review 只開啟對話,核准仍在 App 的 permission card。模擬器截圖看不到 Live Activity,所以 Live Activity、動態島(各狀態 × Lock Screen/Compact/Minimal/Expanded,淺色與深色)和 widget 卡片改用 render 測試輸出 PNG 檢查: