feat: Seatbelt docker, Mermaid (TUI + web), harness notices, completion and paste fixes #73
Loading…
Reference in a new issue
No description provided.
Delete branch "taha/review-followups"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-ups after #72. Sandbox: docker inside macOS Seatbelt via an explicit device grant on one unix socket (never default-on; daemon, SSH agent and signing sockets refused; frozen profile; sandbox-generated DOCKER_CONFIG without credentials, so pulls are anonymous and buildx state stays in the sandbox); sandbox home writes through dirfds; plugin generation bindings, mcp.connect gate, safe grant sweep. TUI: image paste never fails silently (wl-paste/xclip/osascript, file URIs and Finder copies, FIFO/size guards, Ctrl+V); Mermaid flowcharts drawn as text (subgraphs, edges between subgraphs,
boxes, correct junctions, lanes for outside nodes, top-down fallback); OpenUI salvage parser; table width floors; wrapped code lines copy as one line; slash completion opens arguments on the space, fuzzy + Tab cycling for arguments only, Enter accepts then runs; Tab on an @ directory opens its contents; harness notices for automatic wakes. Web: Mermaid diagrams (lazy, securityLevel strict, CSP unchanged) with a full-screen pan/zoom viewer; harness notices; wide markdown tables no longer shift right; @ directory accept keeps the menu open. Reviews: two security reviews and one TUI review, findings fixed with red-before-fix tests. Checks: check.sh build/vet/gofmt/plugin-API/web-stamp pass; go test ./... pass except a load flake (TestQueuedMessageEndsPrecedeIdleSnapshot passes alone 7/7 and in its package); -race passes except internal/app hitting the 10-minute default timeout (known, left as is); web svelte-check 0 errors, 332 tests pass; Mac Seatbelt smoke: aws, saml2aws, gcloud, kubectl, helm, k9s, talosctl, gh, docker version/compose/hello-world/build and clipboard (PNG, Finder file, text) pass. Limits: sandboxed docker registry auth is anonymous; mermaid adds about 5 MB to the binary; TUI line budget raised to 49300; two macOS sandbox tests already fail on the base (TrustedConfigEnvironment, SystemCertificateBundle); not verified in a real browser.
A dependency chart with two subgraphs, a fan-in node and a <br/> label came out garbled in the TUI: - `Infra -.->|x| Core` created plain nodes named Infra and Core. An edge that names a subgraph now runs from its exit node to the other's entry node, across both borders, keeping its label and dotted style. - Subgraph borders overwrote wires and labels ("│││", the label left as stray letters). Borders now join the wires they cross, gaps between subgraphs hold both borders (per nesting level) and the wire's channel, and labels are placed last on free cells, or the chart is refused. - Every wire cell set all four directions at a run's ends, so turns became T-pieces and runs started one cell past the corner ("│──", "─┼"). Runs now share corner cells and set only the directions they use, so turns are corners and merges are junctions. - <br/> became literal text; it now makes a multi-line box. - Nested subgraphs were clamped onto each other at the grid edge; the drawing shifts instead. Boxes that would overlap or enclose a non-member are refused (the caller shows the source). - A left-to-right chart wider than the terminal is drawn top-down instead of falling back to source. The goldens are regenerated: the old ones froze the same junction bugs. New tests (all red on the previous code): TestEdgeBetweenSubgraphsLinksTheBoxes, TestLineBreakInALabelMakesATallerBox, TestFanInJoinsWithJunctions, TestWideLeftToRightChartStacksTopDown; plus TestOverlappingSubgraphBoxesAreRefused. FuzzRender: 45 s, 3.4M execs, no crashers. TUI line budget raised to 49300 (measured 48804).The real dependency chart still showed only its source: APPS, a node outside all subgraphs fed from inside Core, was placed in Core's layer column under Core's nodes, so Core's box would have enclosed it and the render was refused. Each top-level subgraph, and the group of outside nodes, now gets its own cross-axis lane where their layers overlap (groups on disjoint layers share a lane and stay aligned). Also: - An edge between boxes of different heights (a <br/> box next to a one-line box) jogged out of the taller box's centre ("──┐ └▶"); it now runs straight on a row both boxes share. - A quoted dotted/pipe label (`-. "Makefile order" .->`) kept its quotes. Tests (red on the previous commit): TestRealDependencyChartRenders (the model's exact chart, at 400 and 228 columns) and TestDifferentHeightBoxesConnectStraight. One golden lost a needless jog.c0e9a75183to5a6b808bc9Pull request closed