Repository navigation
feat(ember): add a persistent personal assistant widget - #294
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8d1ad9294
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| Err(error) => { | ||
| let message = format!("保存できないため新しい実行を停止しました: {error}"); | ||
| self.failed = Some(message.clone()); | ||
| for canceled in self.active.values() { | ||
| canceled.store(true, Ordering::Release); |
There was a problem hiding this comment.
Keep quota rejection recoverable through history deletion
When a candidate snapshot exceeds the 32 MiB limit, Store::commit returns a capacity-validation error before writing anything, but this handler treats it as a fatal persistence failure. Setting self.failed also makes command reject DeleteRun and ClearConversation, so users cannot perform the history cleanup requested by the capacity error without restarting the service; unrelated active responses are canceled as well. Distinguish quota rejection from storage-integrity or I/O failures so cleanup commands remain available.
Useful? React with 👍 / 👎.
| Ok(view) if Some(view.state.revision) != last_revision => { | ||
| last_revision = Some(view.state.revision); | ||
| notify(Update::View(view)); | ||
| } | ||
| Ok(_) => {} |
There was a problem hiding this comment.
Propagate service failures even when the revision is unchanged
If saving a completion or writing its artifact fails after the UI has observed the running revision, the service sets its in-memory failure notice without advancing state.revision. This polling condition discards every subsequent view containing that notice, leaving the window showing the request as running even though dispatch has stopped and active responses have been canceled. Track changes to View.notice as well as the durable revision so asynchronous persistence failures reach connected windows.
Useful? React with 👍 / 👎.
d8d1ad9 to
01742a7
Compare
Purpose
Add Ember as a persistent personal assistant inside Noa: users can continue a conversation, explicitly save preferences, and delegate document or source-research requests that produce retained artifacts.
What changed
widgets/emberhelper, with conversation, requests, memory and settings pages, responsive layouts, shared appearance settings, explicit file previews, and preserved drafts/IME state.ember.openin the command palette, View menu, menu-bar companion, launcher, macOS bundle, widget registry and verification gate. Keep the existingember.togglebehavior. The initial helper ships on macOS; its tests also run on Linux.This release does not include live web browsing, generic shell tools, streaming output, scheduled briefs, or automatic tracking of the handed-off Workflow run.
Verification
97e4a29: macOS core, macOS widgets and the Linux full gate. CI run 46160007894.04062e1, preserving the saved-run demo and newer Workflow guards. The macOS menu test uses actual Objective-C dispatch; the final macOS core job verifies the selector fix.cargo clippy --manifest-path widgets/ember/Cargo.toml --locked --all-targets -- -D warningspassed.mainbase: 129 passed (79 library, 50 UI/CLI), including returning from an existing active run to the Ember handoff draft. The final compiled test executables were rerun successfully after clearing compiler cache to free temporary-file space.scripts/verify.sh(which widened to the full gate) andscripts/verify.sh --full: blocked by sandbox disk exhaustion, exit 1. The Linux full gate subsequently passed in GitHub Actions. The full run passed format, dependency boundaries, registration, workspace clippy, hook tests, skill-installation tests, registration tests and desktop/AppStream validation. The workspace build and later checks encounteredNo space left on device, including a snapshot write after disk exhaustion. The focused test runs above completed with space available. The full gate's last line was:verify: FAILED: build test dashboard browser discussion competition review verify tasks scaffold workflow ember usage widget-host. No gate or test was removed or skipped.Not verified
Native screenshots
Offline demo rendered by the actual widget, not a browser mockup.
Risks
Risk class
High — adds a widget manifest/lockfile and extends the registration, macOS packaging and verification gate. No merge or release is performed by this PR.