2 Commits
Author SHA1 Message Date
Jeroen SchweitzerandClaude Opus 4.6 baf90270d1 share DaemonBus between backend and kernel, fix terminal spawn timing
test / unit + widget + golden + a11y (push) Failing after 28s
test / integration_test (xvfb) (push) Has been skipped
test / bundle smoke (xvfb 5s) (push) Has been skipped
test / daemon subprocess + web WASM smoke (push) Has been skipped
The IsolateClient and KernelServices now share the same DaemonBus.
Previously, backend events (pane.output, git.changed) went to a
separate bus that widgets couldn't see.

ClaudePane._spawnWhenReady waits for ProjectOpened before sending
pane.spawn, preventing "No project active" errors.

Recents loaded before runApp so the welcome screen shows them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-26 17:17:17 +02:00
Jeroen SchweitzerandClaude Opus 4.6 243a92798c fix macOS PTY: cmsghdr layout, signing, sandbox removal
macOS cmsghdr uses socklen_t (4 bytes) for cmsg_len, not size_t
(8 bytes like Linux). The Dart FFI struct was reading at wrong offsets
causing SCM_RIGHTS fd transfer to fail. Added CmsghdrDarwin with
Uint32 cmsg_len alongside the existing Linux layout.

SOL_SOCKET is 0xffff on macOS (was hardcoded to 1 for Linux).
Now platform-detected.

Switched from ad-hoc to Apple Development signing with team ID.
Removed app sandbox from entitlements — proper signing makes it
unnecessary. All SBPL hacks eliminated.

PtySession.spawn() runs recvFd in a child isolate to avoid blocking
the backend isolate's event loop.

Terminal testmode test now passes: pane.spawn via backend isolate
successfully forks and execs the shell.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-26 17:04:22 +02:00
9 changed files with 176 additions and 142 deletions
+100 -100
View File
@@ -1,5 +1,5 @@
{
"exported_at": "2026-04-26T13:55:29Z",
"exported_at": "2026-04-26T15:17:17Z",
"decisions": [
{
"id": "D-1",
@@ -9,7 +9,7 @@
"status": "active",
"date": "2026-04-20",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-3",
@@ -19,7 +19,7 @@
"status": "active",
"date": "2026-04-20",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-4",
@@ -29,7 +29,7 @@
"status": "active",
"date": "2026-04-20",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-5",
@@ -39,7 +39,7 @@
"status": "active",
"date": "2026-04-20",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-6",
@@ -49,7 +49,7 @@
"status": "active",
"date": "2026-04-20",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-7",
@@ -59,7 +59,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-8",
@@ -69,7 +69,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-9",
@@ -79,7 +79,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-10",
@@ -89,7 +89,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-11",
@@ -99,7 +99,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-12",
@@ -109,7 +109,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-13",
@@ -119,7 +119,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-14",
@@ -129,7 +129,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-15",
@@ -139,7 +139,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-16",
@@ -149,7 +149,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-17",
@@ -159,7 +159,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-18",
@@ -169,7 +169,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-19",
@@ -179,7 +179,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-20",
@@ -189,7 +189,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/accessibility.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-21",
@@ -199,7 +199,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/accessibility.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-22",
@@ -209,7 +209,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/accessibility.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-23",
@@ -219,7 +219,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-24",
@@ -229,7 +229,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-25",
@@ -239,7 +239,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-26",
@@ -249,7 +249,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-27",
@@ -259,7 +259,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-28",
@@ -269,7 +269,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-29",
@@ -279,7 +279,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-30",
@@ -289,7 +289,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-31",
@@ -299,7 +299,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/tooling.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-32",
@@ -309,7 +309,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/tooling.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-33",
@@ -319,7 +319,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/tooling.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-34",
@@ -329,7 +329,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-35",
@@ -339,7 +339,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-36",
@@ -349,7 +349,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-37",
@@ -359,7 +359,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-38",
@@ -369,7 +369,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-39",
@@ -379,7 +379,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-40",
@@ -389,7 +389,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-41",
@@ -399,7 +399,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-42",
@@ -409,7 +409,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/tooling.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-43",
@@ -419,7 +419,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-44",
@@ -429,7 +429,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-45",
@@ -439,7 +439,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-46",
@@ -449,7 +449,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-47",
@@ -459,7 +459,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-48",
@@ -469,7 +469,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-49",
@@ -479,7 +479,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-50",
@@ -489,7 +489,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-51",
@@ -499,7 +499,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-52",
@@ -509,7 +509,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-53",
@@ -519,7 +519,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-54",
@@ -529,7 +529,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-55",
@@ -539,7 +539,7 @@
"status": "active",
"date": "2026-04-23",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-56",
@@ -549,7 +549,7 @@
"status": "active",
"date": "2026-04-23",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-57",
@@ -559,7 +559,7 @@
"status": "active",
"date": "2026-04-23",
"file_path": "decisions/architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-58",
@@ -569,7 +569,7 @@
"status": "active",
"date": "2026-04-23",
"file_path": "decisions/tooling.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "D-59",
@@ -579,7 +579,7 @@
"status": "active",
"date": "2026-04-25",
"file_path": "decisions/tooling.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-1",
@@ -588,7 +588,7 @@
"title": "Authorisation granularity on the IPC socket",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-2",
@@ -597,7 +597,7 @@
"title": "Back-pressure on event streams",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-3",
@@ -606,7 +606,7 @@
"title": "Event persistence + audit/undo",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-4",
@@ -615,7 +615,7 @@
"title": "`.canvas` schema compatibility with Obsidian",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-5",
@@ -624,7 +624,7 @@
"title": "IPC wire-format stability + `schema_version:`",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-6",
@@ -633,7 +633,7 @@
"title": "Window chrome — native frame vs frameless custom",
"status": "resolved",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-7",
@@ -642,7 +642,7 @@
"title": "macOS app bundle signing / notarisation",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-8",
@@ -651,7 +651,7 @@
"title": "Extension API shape — widgets, subcommands, both?",
"status": "open",
"file_path": "decisions/questions-extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-9",
@@ -660,7 +660,7 @@
"title": "Lua runtime vendoring",
"status": "open",
"file_path": "decisions/questions-extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-10",
@@ -669,7 +669,7 @@
"title": "Extension manifest `schema_version:`",
"status": "open",
"file_path": "decisions/questions-extensions.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-11",
@@ -678,7 +678,7 @@
"title": "Coverage gates — hard thresholds vs soft reporting",
"status": "open",
"file_path": "decisions/questions-testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-12",
@@ -687,7 +687,7 @@
"title": "Screen-reader automation (axe-core via Playwright)",
"status": "open",
"file_path": "decisions/questions-testing.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-13",
@@ -696,7 +696,7 @@
"title": "Web production-mode a11y",
"status": "open",
"file_path": "decisions/questions-accessibility.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-14",
@@ -705,7 +705,7 @@
"title": "i18n plurals / gender / date-format tooling",
"status": "open",
"file_path": "decisions/questions-accessibility.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-15",
@@ -714,7 +714,7 @@
"title": "Editor tab — full LSP vs tree-sitter-only highlight",
"status": "open",
"file_path": "decisions/questions-process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-16",
@@ -723,7 +723,7 @@
"title": "`tree-sitter-dart` grammar maintenance",
"status": "open",
"file_path": "decisions/questions-process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-17",
@@ -732,7 +732,7 @@
"title": "Icon set growth",
"status": "open",
"file_path": "decisions/questions-process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-18",
@@ -741,7 +741,7 @@
"title": "Theme hot-reload in release builds",
"status": "open",
"file_path": "decisions/questions-process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-19",
@@ -750,7 +750,7 @@
"title": "(withdrawn)",
"status": "resolved",
"file_path": "decisions/questions-process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-20",
@@ -759,7 +759,7 @@
"title": "Kernel DB service — namespaced SQL access?",
"status": "open",
"file_path": "decisions/questions-process.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-21",
@@ -768,7 +768,7 @@
"title": "Pql absorbs planning vs keeps separate",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-22",
@@ -777,7 +777,7 @@
"title": "Ticket persistence strategy",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-23",
@@ -786,7 +786,7 @@
"title": "SSH-remote development — run clide against a remote workspace",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-25",
@@ -795,7 +795,7 @@
"title": "Body text face — mono everywhere vs Josefin Sans UI + mono code",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-26",
@@ -804,7 +804,7 @@
"title": "Small screen layout (\u003c 1000px)",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-27",
@@ -813,7 +813,7 @@
"title": "Two-editor split",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-28",
@@ -822,7 +822,7 @@
"title": "Terminal strip scope — shell only or logs/errors/tests",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-29",
@@ -831,7 +831,7 @@
"title": "Branch picker location",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-30",
@@ -840,7 +840,7 @@
"title": "Focus behavior when editor is dirty and viewer is peeked",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "Q-31",
@@ -849,7 +849,7 @@
"title": "XWayland fallback for frameless — proper Wayland protocol needed",
"status": "open",
"file_path": "decisions/questions-architecture.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-2",
@@ -859,7 +859,7 @@
"status": "active",
"date": "2026-04-20",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-3",
@@ -869,7 +869,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-4",
@@ -879,7 +879,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-5",
@@ -889,7 +889,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-6",
@@ -899,7 +899,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-7",
@@ -909,7 +909,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-8",
@@ -919,7 +919,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-9",
@@ -929,7 +929,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-10",
@@ -939,7 +939,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-11",
@@ -949,7 +949,7 @@
"status": "active",
"date": "2026-04-21",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
},
{
"id": "R-12",
@@ -959,7 +959,7 @@
"status": "active",
"date": "2026-04-22",
"file_path": "decisions/rejected.md",
"synced_at": "2026-04-26 13:12:51"
"synced_at": "2026-04-26 15:06:17"
}
],
"decision_refs": [
+20 -1
View File
@@ -57,7 +57,7 @@ class _ClaudePaneState extends State<ClaudePane> {
_terminal = Terminal(maxLines: _maxLines);
_terminal.onOutput = _onOutput;
_terminal.onResize = _onResize;
WidgetsBinding.instance.addPostFrameCallback((_) => _spawn());
WidgetsBinding.instance.addPostFrameCallback((_) => _spawnWhenReady());
}
@override
@@ -78,6 +78,25 @@ class _ClaudePaneState extends State<ClaudePane> {
super.dispose();
}
Future<void> _spawnWhenReady() async {
if (!mounted) return;
final kernel = ClideKernel.of(context);
if (!kernel.project.isOpen) {
// Wait for a project to open before spawning.
final c = Completer<void>();
late final StreamSubscription<ProjectOpened> sub;
sub = kernel.events.on<ProjectOpened>().listen((_) {
sub.cancel();
if (!c.isCompleted) c.complete();
});
await c.future.timeout(const Duration(seconds: 10), onTimeout: () {
sub.cancel();
});
if (!mounted) return;
}
return _spawn();
}
Future<void> _spawn() async {
if (!mounted) return;
final ipc = _ipc();
+2 -1
View File
@@ -107,9 +107,10 @@ class KernelServices {
Toolchain? toolchain,
Future<void> Function(String path)? onProjectOpen,
Future<String?> Function(String path)? onValidateProject,
DaemonBus? sharedBus,
}) async {
final log = Logger();
final events = DaemonBus();
final events = sharedBus ?? DaemonBus();
final messages = MessageBus();
final settings = SettingsStore(appDir: appDir);
+9 -1
View File
@@ -57,11 +57,12 @@ Future<void> main() async {
// Phase 1: resolve toolchain (binary availability only, no workspace).
// Phase 2: openProject() initializes services when a project opens.
const workspace = String.fromEnvironment('CLIDE_WORKSPACE');
final sharedBus = DaemonBus();
final backend = kIsWeb ? null : await Backend.spawn(
hintRoot: workspace.isNotEmpty ? workspace : null,
clientFactory: (backendPort) => IsolateClient(
log: Logger(),
events: DaemonBus(),
events: sharedBus,
backendPort: backendPort,
),
);
@@ -82,6 +83,7 @@ Future<void> main() async {
onValidateProject: backend != null
? (path) => backend.validateProject(path)
: null,
sharedBus: backend != null ? sharedBus : null,
);
// Register every built-in. Tier 0 activates only the four that do
@@ -120,6 +122,12 @@ Future<void> main() async {
await services.extensions.activateAll();
// Load recents before runApp so the welcome screen shows them.
// project.open triggers backend.openProject which initializes services.
if (!kIsWeb) {
await services.project.loadRecents();
}
runApp(ClideApp(services: services));
}
+19 -3
View File
@@ -11,6 +11,7 @@
library;
import 'dart:ffi' as ffi;
import 'dart:io' show Platform;
import 'package:ffi/ffi.dart' as pkg_ffi;
@@ -21,8 +22,8 @@ import 'package:ffi/ffi.dart' as pkg_ffi;
const int afUnix = 1;
const int sockStream = 1;
const int solSocket = 1; // Linux; macOS = 0xffff
const int scmRights = 1;
final int solSocket = Platform.isMacOS ? 0xffff : 1;
final int scmRights = Platform.isMacOS ? 0x01 : 1;
const int fIoNonblock = 0x800; // O_NONBLOCK — 04000 octal
const int fGetFl = 3;
@@ -133,7 +134,10 @@ final class Msghdr extends ffi.Struct {
/// POSIX `struct cmsghdr` prefix. We treat the rest of the control
/// buffer as a raw byte region and compute offsets by hand.
final class Cmsghdr extends ffi.Struct {
// On Linux, cmsg_len is size_t (8 bytes on 64-bit).
// On macOS, cmsg_len is socklen_t (4 bytes, always).
// Use platform-specific structs.
final class CmsghdrLinux extends ffi.Struct {
@ffi.IntPtr()
external int cmsg_len;
@ffi.Int32()
@@ -142,6 +146,18 @@ final class Cmsghdr extends ffi.Struct {
external int cmsg_type;
}
final class CmsghdrDarwin extends ffi.Struct {
@ffi.Uint32()
external int cmsg_len;
@ffi.Int32()
external int cmsg_level;
@ffi.Int32()
external int cmsg_type;
}
// Alias for backward compatibility — callers use Cmsghdr.
typedef Cmsghdr = CmsghdrLinux;
/// POSIX `struct winsize` for `TIOCSWINSZ`.
final class Winsize extends ffi.Struct {
@ffi.Uint16()
+18 -10
View File
@@ -6,6 +6,7 @@
library;
import 'dart:ffi' as ffi;
import 'dart:io' show Platform;
import 'package:ffi/ffi.dart' as pkg_ffi;
@@ -58,21 +59,28 @@ int recvFd(int socketFd) {
);
}
// Parse the first cmsghdr out of the control buffer. We assume a
// single SCM_RIGHTS cmsg with one int of payload — that's what
// `ptyc` sends and all we ever ask for.
final hdr = control.cast<libc.Cmsghdr>().ref;
if (hdr.cmsg_level != libc.solSocket || hdr.cmsg_type != libc.scmRights) {
// Parse the first cmsghdr out of the control buffer. On macOS,
// cmsg_len is socklen_t (4 bytes); on Linux it's size_t (8 bytes).
int cmsgLevel, cmsgType, dataOffset;
if (Platform.isMacOS) {
final hdr = control.cast<libc.CmsghdrDarwin>().ref;
cmsgLevel = hdr.cmsg_level;
cmsgType = hdr.cmsg_type;
dataOffset = ffi.sizeOf<libc.CmsghdrDarwin>();
} else {
final hdr = control.cast<libc.CmsghdrLinux>().ref;
cmsgLevel = hdr.cmsg_level;
cmsgType = hdr.cmsg_type;
dataOffset = ffi.sizeOf<libc.CmsghdrLinux>();
}
if (cmsgLevel != libc.solSocket || cmsgType != libc.scmRights) {
throw PtyException(
'recvmsg',
'unexpected cmsg level=${hdr.cmsg_level} type=${hdr.cmsg_type}',
'unexpected cmsg level=$cmsgLevel type=$cmsgType',
);
}
// CMSG_DATA starts at the first aligned boundary after the cmsghdr.
// On Linux/glibc that's sizeof(cmsghdr) == 16, which is 8-byte
// aligned already. We rely on that layout.
final dataOffset = ffi.sizeOf<libc.Cmsghdr>();
final fdPtr = (control + dataOffset).cast<ffi.Int32>();
return fdPtr.value;
} finally {
+6 -3
View File
@@ -525,7 +525,8 @@
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
DEVELOPMENT_TEAM = 54XXM3ZQTX;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
@@ -601,7 +602,8 @@
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
DEVELOPMENT_TEAM = 54XXM3ZQTX;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
@@ -657,7 +659,8 @@
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "Apple Development";
DEVELOPMENT_TEAM = 54XXM3ZQTX;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+1 -22
View File
@@ -2,30 +2,9 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.temporary-exception.sbpl</key>
<array>
<string>(allow process-exec* (literal "/bin/zsh"))</string>
<string>(allow process-exec* (literal "/usr/bin/which"))</string>
<string>(allow process-exec* (subpath "/Users/jeroenschweitzer/.local/bin"))</string>
<string>(allow process-exec* (subpath "/Users/jeroenschweitzer/Projects/clide/ptyc/bin"))</string>
<string>(allow process-exec* (subpath "/Users/jeroenschweitzer/Projects/clide/native/dugite"))</string>
<string>(allow process-fork)</string>
<string>(allow file-read* file-write* (subpath "/Users/jeroenschweitzer/Projects"))</string>
<string>(allow file-read* file-write* (subpath "/Users/jeroenschweitzer/projects"))</string>
<string>(allow file-read* (subpath "/opt/homebrew"))</string>
<string>(allow file-read* (subpath "/Users/jeroenschweitzer/.local"))</string>
<string>(allow file-read* (subpath "/Users/jeroenschweitzer/.pql"))</string>
<string>(allow file-read* file-write* (subpath "/private/tmp"))</string>
</array>
</dict>
</plist>
+1 -1
View File
@@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>