mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
* fix(mobile): run the repo's archive hook when deleting a workspace from the phone
Mobile's delete sent worktree.rm without runHooks, so the host skipped the
orca.yaml archive hook that desktop runs. The phone now does what desktop's
ensureHooksConfirmed('archive') does: it asks to trust an unapproved shared
archive script, sends runHooks with desktop's reply timeout, and when the hook
fails it shows the host's error with Delete Anyway, which resends with
allowFailedArchiveHook.
repo.hooks now reports archiveTrust (hash and content of the shared orca.yaml
archive script, or null when none needs trust). Older hosts omit it, and the
phone then keeps skipping the hook rather than run a script it cannot check.
* fix(mobile): share one Modal for delete drawers and pin each prompt to its host
Delete's confirm, archive trust prompt and hook failure now share one
BottomDrawerModalHost so iOS never presents over a closing drawer. A pending
prompt or failure keeps the clients it started on, the row hides as soon as
Delete is tapped, repo-wide trust counts server-owned repos, and folder repos
report no archive trust since their removal runs no hook.
* fix(mobile): recheck archive trust before Delete Anyway and count server repos once
Delete Anyway goes back through the trust decision, so a script changed since
approval is asked about again. Repo-wide trust counts each server repo once
rather than once per workspace, and restoring a row never duplicates it.
* fix(mobile): honour repo-wide archive trust only with the desktop catalog loaded
Until the catalog loads, a same-id repo on another host cannot be ruled out,
so only an approval of that exact script counts. The trust drawer's actions
take the pending request synchronously so a double tap cannot both run and
skip the hook.
* fix(mobile): drop archive prompts and failures from another desktop
A trust prompt or hook failure belongs to the desktop it started on. After a
host switch it is no longer shown or acted on, so a retry can never pair one
desktop's trust with another desktop's repo catalog.
* refactor(mobile): one archive trust check and an optional drawer busy flag
* fix(mobile): file delete-failure strings under the host screen overlays
Also pins the host's archive hash as a literal digest so the node test no
longer imports renderer code.
* fix(mobile): carry delete haptics and automations onto the renamed hook trust drawer
329 lines
7.5 KiB
JSON
329 lines
7.5 KiB
JSON
{
|
|
"goldenFormatVersion": 6,
|
|
"operation": "host.worktree-actions",
|
|
"family": "host.worktree-actions",
|
|
"namedDeltas": [],
|
|
"values": {
|
|
"18996856522a": {
|
|
"name": "lastKnownWorktrees",
|
|
"ordinal": 6,
|
|
"value": []
|
|
},
|
|
"369bd9771b51": {
|
|
"name": "lastKnownWorktrees",
|
|
"ordinal": 10,
|
|
"value": [
|
|
{
|
|
"branch": "feature/pin",
|
|
"displayName": "marlin",
|
|
"hasAttachedPty": false,
|
|
"isPinned": false,
|
|
"linkedPR": {
|
|
"$rpc": "null"
|
|
},
|
|
"liveTerminalCount": 0,
|
|
"path": "/repos/marlin/wt-1",
|
|
"preview": "",
|
|
"repo": "marlin",
|
|
"repoId": "repo-1",
|
|
"unread": false,
|
|
"worktreeId": "wt-1"
|
|
}
|
|
]
|
|
},
|
|
"464cf0ce3697": {
|
|
"name": "repo.hooks#1",
|
|
"ordinal": 3,
|
|
"args": [
|
|
{
|
|
"name": "method",
|
|
"value": "repo.hooks"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"value": {
|
|
"repo": "id:repo-1"
|
|
}
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": {
|
|
"$rpc": "absent"
|
|
}
|
|
}
|
|
],
|
|
"settlement": {
|
|
"status": "fulfilled",
|
|
"startedAt": 0,
|
|
"settledAt": 0,
|
|
"value": {
|
|
"id": "frame-1",
|
|
"ok": true,
|
|
"result": {
|
|
"archiveTrust": {
|
|
"$rpc": "null"
|
|
},
|
|
"hasHooksFile": false,
|
|
"hooks": {
|
|
"$rpc": "null"
|
|
},
|
|
"setupConfig": {
|
|
"$rpc": "null"
|
|
},
|
|
"setupRunPolicy": "run-by-default",
|
|
"source": {
|
|
"$rpc": "null"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"569eb8f7aee5": {
|
|
"name": "worktree.rm#1",
|
|
"ordinal": 8,
|
|
"json": "{\"id\":\"frame-2\",\"deviceToken\":\"recording-device\",\"method\":\"worktree.rm\",\"params\":{\"worktree\":\"id:wt-1\",\"force\":true,\"runHooks\":true}}"
|
|
},
|
|
"7a68c6ea2c44": {
|
|
"name": "lastKnownWorktrees",
|
|
"ordinal": 2,
|
|
"value": []
|
|
},
|
|
"83e3e0d1a554": {
|
|
"name": "worktrees",
|
|
"ordinal": 5,
|
|
"value": []
|
|
},
|
|
"8f27c443230b": {
|
|
"name": "worktrees",
|
|
"ordinal": 1,
|
|
"value": []
|
|
},
|
|
"9270aeb7d9c6": {
|
|
"status": "pending",
|
|
"startedAt": 0
|
|
},
|
|
"960e985c770d": {
|
|
"name": "worktrees",
|
|
"ordinal": 9,
|
|
"value": [
|
|
{
|
|
"branch": "feature/pin",
|
|
"displayName": "marlin",
|
|
"hasAttachedPty": false,
|
|
"isPinned": false,
|
|
"linkedPR": {
|
|
"$rpc": "null"
|
|
},
|
|
"liveTerminalCount": 0,
|
|
"path": "/repos/marlin/wt-1",
|
|
"preview": "",
|
|
"repo": "marlin",
|
|
"repoId": "repo-1",
|
|
"unread": false,
|
|
"worktreeId": "wt-1"
|
|
}
|
|
]
|
|
},
|
|
"b8a1fe46c55b": {
|
|
"actionError": "",
|
|
"archiveHookFailure": {
|
|
"$rpc": "null"
|
|
},
|
|
"archiveTrustPrompt": {
|
|
"$rpc": "null"
|
|
},
|
|
"confirmRemoveHost": false,
|
|
"desktopRepos": [
|
|
{
|
|
"id": "repo-1"
|
|
}
|
|
],
|
|
"lastKnownWorktrees": [
|
|
{
|
|
"branch": "feature/pin",
|
|
"displayName": "marlin",
|
|
"hasAttachedPty": false,
|
|
"isPinned": false,
|
|
"linkedPR": {
|
|
"$rpc": "null"
|
|
},
|
|
"liveTerminalCount": 0,
|
|
"path": "/repos/marlin/wt-1",
|
|
"preview": "",
|
|
"repo": "marlin",
|
|
"repoId": "repo-1",
|
|
"unread": false,
|
|
"worktreeId": "wt-1"
|
|
}
|
|
],
|
|
"optimisticActiveWorktreeIdentity": {
|
|
"$rpc": "null"
|
|
},
|
|
"pinnedIds": [],
|
|
"serverWorkspaces": {
|
|
"hosts": [],
|
|
"worktrees": []
|
|
},
|
|
"worktrees": [
|
|
{
|
|
"branch": "feature/pin",
|
|
"displayName": "marlin",
|
|
"hasAttachedPty": false,
|
|
"isPinned": false,
|
|
"linkedPR": {
|
|
"$rpc": "null"
|
|
},
|
|
"liveTerminalCount": 0,
|
|
"path": "/repos/marlin/wt-1",
|
|
"preview": "",
|
|
"repo": "marlin",
|
|
"repoId": "repo-1",
|
|
"unread": false,
|
|
"worktreeId": "wt-1"
|
|
}
|
|
]
|
|
},
|
|
"ba1352a3c9a2": {
|
|
"name": "worktree.rm#1",
|
|
"ordinal": 7,
|
|
"args": [
|
|
{
|
|
"name": "method",
|
|
"value": "worktree.rm"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"value": {
|
|
"force": true,
|
|
"runHooks": true,
|
|
"worktree": "id:wt-1"
|
|
}
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": {
|
|
"timeoutMs": 300000
|
|
}
|
|
}
|
|
],
|
|
"settlement": {
|
|
"status": "pending",
|
|
"startedAt": 0
|
|
}
|
|
},
|
|
"bbc069d0d206": {
|
|
"actionError": "",
|
|
"archiveHookFailure": {
|
|
"$rpc": "null"
|
|
},
|
|
"archiveTrustPrompt": {
|
|
"$rpc": "null"
|
|
},
|
|
"confirmRemoveHost": false,
|
|
"desktopRepos": [
|
|
{
|
|
"id": "repo-1"
|
|
}
|
|
],
|
|
"lastKnownWorktrees": [],
|
|
"optimisticActiveWorktreeIdentity": {
|
|
"$rpc": "null"
|
|
},
|
|
"pinnedIds": [],
|
|
"serverWorkspaces": {
|
|
"hosts": [],
|
|
"worktrees": []
|
|
},
|
|
"worktrees": []
|
|
},
|
|
"e0a8dfe3ec89": {
|
|
"name": "worktree.rm#1",
|
|
"ordinal": 7,
|
|
"args": [
|
|
{
|
|
"name": "method",
|
|
"value": "worktree.rm"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"value": {
|
|
"force": true,
|
|
"runHooks": true,
|
|
"worktree": "id:wt-1"
|
|
}
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": {
|
|
"timeoutMs": 300000
|
|
}
|
|
}
|
|
],
|
|
"settlement": {
|
|
"status": "fulfilled",
|
|
"startedAt": 0,
|
|
"settledAt": 0,
|
|
"value": {
|
|
"error": {
|
|
"code": "worktree_busy",
|
|
"message": "Worktree is busy"
|
|
},
|
|
"id": "frame-2",
|
|
"ok": false
|
|
}
|
|
}
|
|
},
|
|
"eb79a9b3682a": {
|
|
"status": "fulfilled",
|
|
"startedAt": 0,
|
|
"settledAt": 0,
|
|
"value": {
|
|
"$rpc": "undefined"
|
|
}
|
|
},
|
|
"f95f2f51091a": {
|
|
"name": "repo.hooks#1",
|
|
"ordinal": 4,
|
|
"json": "{\"id\":\"frame-1\",\"deviceToken\":\"recording-device\",\"method\":\"repo.hooks\",\"params\":{\"repo\":\"id:repo-1\"}}"
|
|
}
|
|
},
|
|
"recording": {
|
|
"scenario": "host-worktree-delete-refused",
|
|
"checkpoints": [
|
|
{
|
|
"id": "delete-optimistic",
|
|
"observation": {
|
|
"sender": ["464cf0ce3697", "ba1352a3c9a2"],
|
|
"payloads": ["f95f2f51091a", "569eb8f7aee5"],
|
|
"settlements": {
|
|
"mount": "eb79a9b3682a",
|
|
"delete": "9270aeb7d9c6"
|
|
},
|
|
"state": "bbc069d0d206",
|
|
"effects": ["8f27c443230b", "7a68c6ea2c44", "83e3e0d1a554", "18996856522a"]
|
|
}
|
|
},
|
|
{
|
|
"id": "restored",
|
|
"observation": {
|
|
"sender": ["464cf0ce3697", "e0a8dfe3ec89"],
|
|
"payloads": ["f95f2f51091a", "569eb8f7aee5"],
|
|
"settlements": {
|
|
"mount": "eb79a9b3682a",
|
|
"delete": "eb79a9b3682a"
|
|
},
|
|
"state": "b8a1fe46c55b",
|
|
"effects": [
|
|
"8f27c443230b",
|
|
"7a68c6ea2c44",
|
|
"83e3e0d1a554",
|
|
"18996856522a",
|
|
"960e985c770d",
|
|
"369bd9771b51"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|