* fix(desktop): preserve menu bar placement and support desktop pointer targets
Embed a stable AppKit preference identity in native menu bar helpers,
with isolated development profile identities and metadata-aware caching.
Expose explicit capture-bound desktop click and drag through Computer Use
while preserving window targeting, input serialization and user protection.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: David <david@DaviddeMacBook-Air.local>
* fix(desktop): invalidate desktop captures after local input
Record the start of each desktop capture and verify system idle time before
queueing and dispatch. Reject local HID input after capture even once the
user is no longer active, including input during capture and unknown timing.
Add production-dispatch regression coverage for stale click and drag,
slow captures, and unknown idle state.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: David <david@DaviddeMacBook-Air.local>
* fix(desktop): clean up generated desktop captures
Release host-owned desktop screenshots on replacement, failure, cancellation and session cleanup while preserving explicit exports and concurrent reads.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: David <david@DaviddeMacBook-Air.local>
---------
Signed-off-by: David <david@DaviddeMacBook-Air.local>
Co-authored-by: David <david@DaviddeMacBook-Air.local>
signMacAppWithIdentity signed Resources, Frameworks and the app but not
Contents/PlugIns, so the widget extension kept its ad-hoc signature at
notarization. Sign each .appex with the release identity and the App
Sandbox entitlements before the main app, and point the notes at it.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
With the keyboard gone the shadow under the mascot only showed on the
light Settings cards (it is near invisible on the dark notch and Live
Activity). Remove it from every scene, the Settings preview and Pululu's
preview art.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The running pose no longer sits at a keyboard: Agent Notch's working
scene keeps its bounce and head turn, and the Live Activity's running
still and the Settings previews follow. Removes the keyboard drawing, its
per-skin colors (and their color exemptions), the preview's key
animations and Pululu's keyboard art.
Also puts the collapsed character avatar on the 8px radius scale.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The settings page is regrouped: Agent Notch's own options (subtle
reminders, display) sit under its switch, then the Dynamic Island switch,
then Shared settings with the character (was "icon skin") and event
sounds, which stay available when only the Live Activity is on.
With Agent Notch off, its event sounds now still play for the Live
Activity, through afplay instead of respawning the suspended helper. The
Live Activity's own alert stays silent. When only the Live Activity is
on and it can actually show (allowed in System Settings, showing, or a
window is visible to start it), it replaces the OS notification for
finished tasks and requests for input; errors keep theirs, and a failed
task now reads "Error" instead of "Completed".
The two card descriptions are rewritten to the same shape in all
languages.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
With Apple's Dynamic Island on the new MacBook Pro, Cindy's own top panel
sharing the Chinese name 灵动岛 became ambiguous. It is now 任务胶囊
(任務膠囊) in Chinese and Agent Notch elsewhere; 灵动岛 / Dynamic Island
only means Apple's. The settings section keeps the 灵动岛 title as the
umbrella for both switches, and the Live Activity switch now reads
"Show tasks in the Dynamic Island" with where it appears on each Mac.
Old names stay searchable in Settings, the help knowledge and glossary
are updated, and code identifiers are unchanged.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The status line sat in the bottom region, which runs under the leading
avatar. Move it into the center region with the title, so the expanded
island reads avatar | title and status | counts, like the menu bar card.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The expanded and banner views showed the status twice: as the dot on the
avatar's corner and again before the status line. Keep the avatar dot,
which the compact and minimal views also use, and let the status line
carry the color in its text.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
When the task the island surfaces belongs to a companion and it needs the
user or has replied, the Live Activity shows that companion's avatar
instead of the mascot: the island's bounded JPEG thumbnail, or its emoji or
initial on its hue. Running work keeps the mascot.
An avatar over the island's 2 KB bound is dropped, since ActivityKit
rejects a whole content update above 4 KB.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The sprite PNGs have no eyes; the island draws them in code. The widget
used the raw sprites, so the mascot showed up without eyes.
The island helper now has an `--export-mascots <dir>` mode that renders a
still of every skin in the running / waiting / done poses. build.mjs runs
the packaged helper and compiles those stills into the extension's asset
catalog, and the widget picks the pose for the current status.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The Live Activity now uses Agent Island's colors and count format
(waiting teal, running orange, unread green, "waiting · running") and
adds a summary line such as "2 more tasks running".
It briefly expands only when a task newly needs the user or work
finishes, with a silent alert sound so Cindy's own sounds are not doubled.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Releases, pointer drift, Caps Lock and a stray scroll tick are swallowed
without locking; idle mice, wireless receivers and some keypads emit them on
their own. Key down, button down, a modifier going down or a real scroll still
lock immediately.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
A force-quit Cindy closed the helper's stdout, and writing its status word
raised SIGPIPE, killing the helper before it locked; the masks vanished with
Cindy and left the desktop unlocked. The away guard now ignores SIGPIPE and
turns SIGTERM, SIGHUP and SIGINT into the lock as well.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
The privacy masks used Electron's visibleOnFullScreen, which hides the Dock
tile and leaves the whole process as a background-only (UIElement) app; after
unlocking, the test build had no Dock icon and its windows could not come back.
Away masks are now non-activating panels that skip the process transform, and
any mask teardown restores Dock presence (also for remote desktop). The helper
reports a fixed word for what triggered the lock.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
Wireless receivers report small movements on their own, so movement alone no
longer locks; keys, modifiers, clicks and scrolls still do. The helper no longer
tries to reactivate apps (macOS 14+ refuses that); Main brings back the Cindy
window that was focused, which Electron's all-Spaces masks had pushed behind
every other window.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
The away guard now stops reading input as soon as the system lock is up and,
once the owner unlocks, reactivates the app that was in front when the cover
appeared. Without this the test build's window sank behind every other window
after unlocking and looked like it had quit.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
While an Agent is working, the display no longer idle-sleeps into the lock
screen. Once the owner has been away for the system display-sleep time, the
remote desktop privacy masks cover every display and Agents keep working
behind them. Physical input becomes the real system lock (unlock with Touch ID
or password); work ending, turning the setting off, a new display, a failed
mask or a crashed Cindy also lock. Default off, macOS 14+.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
A 100% reading (29pt) does not fit beside the notch with the badge's 9pt
inset when the side is 36pt, yet fits with 7pt; the inset fallback only
triggered when the bare percentage already fit at 9pt, so nothing showed.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
resetRuntimeState now clears the quota and notifies enabled subscribers so the
quota bridge releases the overview and re-enabling reads the new account.
The lowest plan carries the menu bar's own reading (compactText), so when all
subscriptions are used up and only extra credits remain the folded island
still shows 0% instead of nothing.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
With tasks the expanded top bar put quota right after the mascot, while the
idle island centers it. It is now centered in both, moving aside only as far
as the mascot or the toolbar needs. Beside a hardware notch the center is
taken, so quota still follows the mascot there.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Collapsed, the idle quota sits centered; expanded it jumped to the left.
It now stays where the collapsed island showed it, so expanding only grows
the island around it, and moves left only as far as the toolbar needs.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
During a resize the panel hugs the island; on release main sends the shared
carrier size back. That frame was set after the animated state change, so
the panel jumped wider at once while the island's offset inside it sprang
across, swinging the island about 120pt sideways and back. A carrier that
only grows around the current panel is now set before the state change.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The bare percentage shown at the default notch width is now the lowest
plan's own chip with its logo folded away, and that plan keeps its place
whenever not every chip fits. Widening the island therefore only adds plans
around it instead of swapping it for the first plan. Steps in what fits fade
and slide, even mid-drag.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
At the default notch width not even one quota chip fits beside the notch.
Show the menu bar's lowest-remaining percentage alone there instead, the
same number the menu bar icon shows, colored like its plan.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
The island's width is the user's. Quota now only fills the room the current
width leaves, dropping chips from the end; nothing in main or the helper
reserves extra width for it any more.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Idle, the island shows each plan's remaining quota in place of the app name
(beside a hardware notch: on the trailing side, widening the pill like the
count badge). Expanded, the top bar shows it next to the mascot where there
is room. Sources, order, visibility and privacy masking come from the menu
bar quota overview; the island holds the overview only while it is on.
Main computes each chip's nominal width so the carrier and the native layout
reserve the same number.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
Only persist native island layout after horizontal dragging. Replay deferred reminder expiry with the saved frame when the resize edge was pressed without moving.
Add native controller regression coverage for held pointer polling, deferred expiry, actual resizing and opening the task list.
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: fmfsaisai <fmfsaisai@gmail.com>