Skip to content

feat(ember): add a persistent personal assistant widget - #294

Merged
simota merged 3 commits into
mainfrom
feat/ember-personal-agent
Nov 28, 2026
Merged

simota merged 3 commits into
mainfrom
feat/ember-personal-agent

Conversation

@simota

@simota simota commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

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

  • Add the independent native widgets/ember helper, with conversation, requests, memory and settings pages, responsive layouts, shared appearance settings, explicit file previews, and preserved drafts/IME state.
  • Register ember.open in the command palette, View menu, menu-bar companion, launcher, macOS bundle, widget registry and verification gate. Keep the existing ember.toggle behavior. The initial helper ships on macOS; its tests also run on Linux.
  • Add a separate single-writer local service with durable command receipts, atomic hashed snapshots, scoped history/memory, cancellation, restart recovery, artifact integrity checks, export/deletion, and opt-in outcome notifications. One conversation and two background requests can run concurrently.
  • Use a tool-free OpenAI Responses API backend for conversation, Markdown document creation and analysis of explicitly shared text. Credentials come from the launch environment or macOS Keychain, never from saved settings or command-line arguments. API response loss is represented as uncertain and is never automatically resent.
  • Add an explicit, previewed Ember handoff to Workflow's unstarted form. Preparing the handoff is serialized with deletion; opening the helper is reported as a launch request, not a started or tracked Workflow run.
  • Document connection setup, storage, recovery, bounds and release limitations in the Ember guide, and clarify the assistant text / non-verbal mascot relationship.

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

  • Final GitHub Actions CI passed on 97e4a29: macOS core, macOS widgets and the Linux full gate. CI run 46160007894.
  • Rebased onto 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.
  • Rust 1.92.0.
  • Ember native tests: 48 passed (26 library, 20 UI/CLI, 2 snapshot integration tests).
  • Ember native clippy: cargo clippy --manifest-path widgets/ember/Cargo.toml --locked --all-targets -- -D warnings passed.
  • Workflow native tests on the current main base: 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.
  • Related Noa tests passed: Ember 60, helper program 18, command palette 29, command actions 37. These filters overlap and are not an additive unique-test count.
  • Registration consistency: 34 sources checked, 0 unknown sources, 0 unexplained differences.
  • Native offline screenshots inspected at 1120×780 and 720×640, in dark/light appearance and with 150% text. Offline integration tests verify that all demo pages render without creating a service store or using provider credentials.
  • Regression coverage includes lost acknowledgements with the same request ID, interrupted/queued recovery without replay, concurrent results, cancellation, persistence failures, source capture, memory revision conflicts, deletion of inherited context, deleted-project scope identity, stale handoff prevention and deferred Workflow startup.
  • Local scripts/verify.sh (which widened to the full gate) and scripts/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 encountered No 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

  • Actual macOS window activation, Keychain permission prompts, OS notification delivery and physical IME interaction. Headless rendering and simulated native input tests are not a substitute for those checks.
  • A live authenticated OpenAI request; all provider-dependent lifecycle tests use a deterministic fake backend.
  • Live Unix listener binding and owner-process shutdown in this sandbox. Listener binding is denied here; acknowledgement/reconnection tests exercise the real transport over Unix socket pairs.

Native screenshots

Offline demo rendered by the actual widget, not a browser mockup.

Ember conversation

Requests at minimum size

Risks

  • Introduces a new private plaintext store and a background service. Corrupt/incompatible data and failed persistence stop new dispatch instead of silently resetting history.
  • Canceling stops local response reception; it does not prove that the provider stopped processing or that no usage was charged.
  • Memory/run deletion prevents automatic reuse of older derived context. Previously produced documents or already-sent provider input may still contain that information.
  • Workflow handoffs require the updated Workflow helper. Ember does not claim ownership of a Workflow run or bypass its existing approvals.
  • The service intentionally enforces input, retention and command-receipt limits; the guide describes the behavior at those limits.

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T15:20:10.084949Z d8d1ad9 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +99 to +103
Err(error) => {
let message = format!("保存できないため新しい実行を停止しました: {error}");
self.failed = Some(message.clone());
for canceled in self.active.values() {
canceled.store(true, Ordering::Release);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +184 to +188
Ok(view) if Some(view.state.revision) != last_revision => {
last_revision = Some(view.state.revision);
notify(Update::View(view));
}
Ok(_) => {}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@simota
simota force-pushed the feat/ember-personal-agent branch from d8d1ad9 to 01742a7 Compare November 28, 2026 15:20
@simota
simota merged commit 8dc4352 into main Nov 28, 2026
3 checks passed
@simota
simota deleted the feat/ember-personal-agent branch November 28, 2026 15:39
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