You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: memory/decisions.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,3 +141,52 @@ Type: preference
141
141
Event: User explicitly requested to ignore PR #31 and CloudKit for mobile architecture planning.
142
142
Action: Canonical mobile plan now targets Cloudflare bridge only, with no dependency on CloudKit or PR #31 implementation details.
143
143
Rule: Do not propose CloudKit/PR31-based mobile backend patterns unless user re-requests them.
144
+
145
+
## 2026-02-07 15:11
146
+
Context: Mobile UI scope confirmation
147
+
Type: preference
148
+
Event: User confirmed iOS should reuse the current app layout's mobile variant instead of introducing a separate mobile-only UI surface.
149
+
Action: Treat mobile work as backend/connectivity enablement for existing mobile-responsive UI flows.
150
+
Rule: For iOS rollout, prioritize backend/transport parity for existing UI flows before designing net-new mobile-specific screens.
151
+
152
+
## 2026-02-07 15:26
153
+
Context: App/daemon parity refactor quality bar
154
+
Type: preference
155
+
Event: User requested parity work avoid repeated logical code between app and daemon, with shared implementations as the default.
156
+
Action: Current in-progress daemon parity changes must be completed by extracting/using shared core helpers instead of duplicating logic in daemon-specific functions.
157
+
Rule: For app/daemon parity, keep domain logic in shared modules and restrict app/daemon code to thin adapters.
158
+
159
+
## 2026-02-07 15:42
160
+
Context: Daemon parity implementation scope for mobile wiring
161
+
Type: preference
162
+
Event: User explicitly excluded terminal and dictation from current mobile/remote parity work.
163
+
Action: Implemented daemon RPC parity for non-terminal/non-dictation methods and validated parity gap now contains only `terminal_*` and `dictation_*` commands.
164
+
Rule: For current mobile remote-mode rollout, treat terminal and dictation RPC parity as out of scope unless the user re-enables them.
165
+
166
+
## 2026-02-07 16:58
167
+
Context: App/daemon parity dedup for mobile remote-mode backend
168
+
Type: decision
169
+
Event: Refactored duplicated prompt/local-usage/codex-utility/git logic into shared core modules and switched app/daemon code to adapter-only wrappers.
170
+
Action: Added `shared/prompts_core.rs`, `shared/local_usage_core.rs`, `shared/codex_aux_core.rs`, and `shared/git_ui_core.rs`; rewired `prompts.rs`, `local_usage.rs`, `git/mod.rs`, `codex/mod.rs`, and daemon method handlers to call shared functions.
171
+
Rule: Keep user-facing git/prompt/local-usage/codex utility behavior in shared cores and keep app/daemon files limited to transport/wiring responsibilities.
172
+
173
+
## 2026-02-07 17:22
174
+
Context: Remaining workspace-action parity dedup
175
+
Type: decision
176
+
Event: `add_clone`, `apply_worktree_changes`, `open_workspace_in`, and `get_open_app_icon` still duplicated between app and daemon after first parity refactor pass.
177
+
Action: Moved those behaviors into `shared/workspaces_core.rs` (`add_clone_core`, `apply_worktree_changes_core`, `open_workspace_in_core`, `get_open_app_icon_core`) and rewired both app (`workspaces/commands.rs`) and daemon (`codex_monitor_daemon.rs`) to thin adapters.
178
+
Rule: Keep workspace action behavior shared-first; app and daemon should only pass environment dependencies and transport payloads.
179
+
180
+
## 2026-02-07 17:26
181
+
Context: Backend test-target dead code warnings
182
+
Type: decision
183
+
Event: `cargo test` warnings came from a truly unused test hook and a test helper compiled in targets that do not reference it.
184
+
Action: Removed unused `set_window_appearance_override` from `window.rs`; added `#[allow(dead_code)]` to `workspaces/settings.rs::sort_workspaces` (test-only helper used in lib tests but not daemon test target).
185
+
Rule: Remove genuinely unused test hooks; for cross-target test helpers, use narrow `#[allow(dead_code)]` instead of broad warning suppression.
186
+
187
+
## 2026-02-07 17:32
188
+
Context: Mobile parity verification policy
189
+
Type: preference
190
+
Event: User explicitly requested no CI parity guard for this phase and to rely on local validation.
191
+
Action: Updated mobile Cloudflare blueprint to remove CI parity guard requirements and require local parity validation only.
192
+
Rule: For current mobile/remote scope, do not add CI parity guardrails unless user requests them again.
Event: A bulk file rewrite command truncated `codex/mod.rs` during refactor, temporarily dropping unrelated command handlers.
29
+
Action: Restored file from `HEAD` immediately and reapplied refactor using targeted replacements/patches only.
30
+
Rule: For large Rust modules, avoid full-file/head-tail rewrites unless line boundaries are verified; prefer function-scoped `apply_patch` edits.
31
+
Root cause: Used brittle line-count/head-tail rewrite workflow while file contents were changing.
32
+
Fix applied: Recovered from git snapshot and switched to explicit function-level patching.
33
+
Prevention rule: Use patch hunks anchored on function signatures for high-churn files and verify file length/function inventory after each structural edit.
-[x] Add lint/codemod automation for DS primitive adoption (`modal-shell`, `panel-shell`, `toast-shell`) as defined in `docs/design-system-migration-plan.md`.
10
10
-[x] Run manual visual parity QA checklist for migrated modal/toast/panel/diff families and delete remaining unreferenced legacy selectors.
11
+
-[x] 2026-02-07: Replace daemon `local_usage_snapshot` temporary zeroed snapshot implementation with shared real session-log scanner parity.
12
+
-[x] 2026-02-07: Extract newly mirrored daemon git/github/prompts/codex utility logic into shared core modules to eliminate remaining app/daemon duplication.
13
+
-[x] 2026-02-07: Replace daemon `local_usage_snapshot` temporary implementation by sharing real local usage scanner logic in `shared/local_usage_core.rs`.
14
+
-[x] 2026-02-07: Eliminate app/daemon duplication for git/github/prompt/codex utility behavior via shared cores (`git_ui_core`, `prompts_core`, `codex_aux_core`).
0 commit comments