b8c44502cb5ebbc0066276e424c3ab1f5ec03c64
16
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b8c44502cb |
feat(web/claw): fold the other keys to a working count
The task: and calendar: keys sat in the sidebar at full height all the time, a block of rows most of them idle. The group folds now: by default it shows one line, the count of other sessions holding a lease (the same `leased` state the status dot paints green) beside a more button, and the button unfolds every row and becomes less. The count stays visible unfolded, so the header does not jump when it toggles. The count is gray at zero and takes the ok color only when something runs. The Sessions header still counts folded rows, and the fold state is in-memory like the rest of the page: a reload folds again. |
||
|
|
cdeb5c3994 |
feat(claw): run bash on an ssh login, no daemon on the far end
The framework ships rhema-sandbox-ssh; the claw's sandbox seam now wires it as a third kind beside local and http. The ssh choice carries a host (any destination the local ssh config resolves) and a workspace base, default /root, with one directory per claw workspace under it so two sessions never share a root. The seed probe makes the root first and quotes it for the remote bash. The settings screen gains the SSH host card, and /v1/sandbox carries host and workspace. The rhema family moves to 0.4.1 in lockstep to pick the crate up. |
||
|
|
6abb1436b5 |
feat(android): render chips from the span record, not the mark scan
android / debug (push) Successful in 2m45s
ci / checks (push) Successful in 1m0s
ci / docker (push) Successful in 1m23s
ci / web (push) Successful in 11s
android / release (push) Successful in 2m10s
ci / test (push) Successful in 38s
ci / chart (push) Successful in 5s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m25s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 3s
The phone was the last surface reading chips as paired U+FFFC marks in the text: a web user's staged paste rendered as its raw payload inline, and the mark scan stayed the only parse. Now the row's chip record does the work. `user_message`'s `pastes` spans parse beside the text (the session annotation's own shape, absent on every row that predates it), the controller carries them through the fold's dedupe guard, and the render slices each chip out of the plain text at the record's UTF-8 offsets — one walk maps every character boundary, so a surrogate-heavy draft still lands exactly and a span that splits a character skips whole rather than cutting one in half. A row without a record still scans the mark form, exactly as before. The composer still sends plain text only — this is the read side; the phone never staged text chips even in the mark era. Verified as CI does (assembleDebug, lintDebug) plus a JVM harness running the verbatim slicing code against the daemon's own e2e record numbers, surrogates and seams included. |
||
|
|
c5bf168eed |
feat: chips travel as span records, not mark embeds
android / debug (push) Successful in 2m19s
android / release (push) Successful in 3m0s
ci / checks (push) Successful in 1m11s
ci / test (push) Successful in 38s
ci / chart (push) Successful in 5s
ci / docker (push) Successful in 1m27s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m30s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 14s
ci / publish-edge-chart (push) Successful in 4s
The claw's wire carried chips only as U+FFFC-payload-U+FFFC marks written into the text — the very encoding 0.4.0's fold migrated at the provider seam. Now the record rhema-core defined is the wire's own: a message's pasted payloads ride the POST body's `pastes` array beside the plain draft, the fold composes the plain form and measures each chip's PasteSpan, and the `user_message` echo carries text plus `pastes` — the session annotation's own shape — while the turn's question carries the span note into the checkpoint, shifted by the exact bytes any framing prefix adds. The web client mints and renders the new record: the composer sends draft and payloads separately, the optimistic row composes the same plain text and spans the fold will record (so the echo dedupes), and the render slices the text at the record's byte offsets. Rows recorded before spans arrived still parse the mark form — as does every arrival that still mints it, including every surface the shim or an older client feeds. The phone is one of those: it parses chips by scanning marks, and kotlinx ignores the new field, so it reads spans-less rows exactly as before; adopting span records for its own rows is a follow-up. |
||
|
|
df260fd9a8 |
build: move the claw to rhema 0.4.0
android / debug (push) Successful in 3m34s
android / release (push) Successful in 2m2s
ci / checks (push) Successful in 1m53s
ci / test (push) Successful in 1m55s
ci / docker (push) Successful in 1m32s
ci / chart (push) Successful in 6s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m30s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 8s
ci / publish-edge-chart (push) Successful in 3s
The framework 0.4.0 split the toolkit: rhema-agent-tools becomes rhema-bash plus rhema-prompt, and the facade crate is deleted from the workspace this time, so the 0.3 facades never publish. The driver changes name with its types: rhema-coding-agent and its CodingAgent, CodingAgentConfig, and CodingAgentError become rhema-host-agent with HostAgent, HostAgentConfig, and HostAgentError. The claw imports the split crates directly, which drops its own vision once-lock: rhema-bash's wire already caches the process-wide answer. The paste expansion moved off the provider seam. Chips travel as the message's spans note now, and ExpandPastes is deleted: the dispatch input migrates its embedded form into plain text plus the note at run_turn, and a restashed session migrates the same way on restore, one rewrite on the way in exactly as the driver's from_session does. The transcript events keep the raw chip form, the record the web UI owns, and a migration test pins the restore path. max_turn_steps is NonZeroU32, the engine's own budget shape: a config naming zero is refused at load instead of cutting every round dead. The engine's Event and the sandbox error enum are non-exhaustive now, so the hub sink and the protocol error map carry wildcard arms that drop and fail in-band the way their neighbors do. The claw's own version travels with the framework, as the 0.3.0 move carried 0.2.3 to 0.3.0: the workspace and the chart base become 0.4.0, so the edge channel's pre-releases order above the 0.3.x line. fmt, clippy with -D warnings over all features and targets, the workspace tests, and the doc build pass. |
||
|
|
ed645d1faf |
fix(web/claw): keep the stream watchdog quiet on a tab switch
android / debug (push) Successful in 2m29s
android / release (push) Successful in 2m37s
ci / checks (push) Successful in 1m11s
ci / test (push) Successful in 43s
ci / chart (push) Successful in 5s
ci / docker (push) Successful in 1m32s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m39s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 14s
ci / publish-edge-chart (push) Successful in 4s
A hidden tab throttles timers and can stall the SSE reader. The 45s silence watchdog kept counting that time, aborted the stream, and pushed "the event stream went quiet" on every tab switch even though the connection was fine. The watchdog now pauses while the page is hidden and re-arms from zero when it becomes visible. The attempt also remembers whether it crossed a hidden period: if the browser held or dropped the connection there, the reconnect stays silent. A keep-alive or frame clears that mark, so a stream that really dies while visible still reports itself. Tested in headless Chromium against the dev mock: 50s hidden, then visible, no notice, and the stream went back to live. |
||
|
|
51456f5b4c |
build: bump the chart base version past the 0.2.3 release
android / debug (push) Successful in 2m37s
android / release (push) Successful in 2m21s
ci / checks (push) Successful in 1m14s
ci / test (push) Successful in 54s
ci / chart (push) Successful in 6s
ci / docker (push) Successful in 1m26s
ci / web (push) Successful in 14s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m31s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 10s
ci / publish-edge-chart (push) Successful in 5s
CI publishes every main push as a timestamped pre-release of the chart's base version. The base stayed at 0.1.0 through the 0.3.0 framework move, but the package repository also holds a 0.2.3 chart from the old release line. SemVer ranks 0.2.3 above every 0.1.0 pre-release, so a HelmRelease with `>=0.1.0-0` resolves to 0.2.3 and never sees a newer edge chart. The base is 0.3.0 now, matching the workspace version. Edge charts sort above 0.2.3 again, and the release tag check already expects 0.3.0. |
||
|
|
ea4810a576 |
feat(claw): choose where bash runs, this host or a remote sandbox
android / debug (push) Successful in 2m42s
android / release (push) Successful in 5m2s
ci / checks (push) Successful in 1m22s
ci / test (push) Successful in 1m5s
ci / chart (push) Successful in 7s
ci / docker (push) Successful in 1m42s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m34s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 14s
ci / publish-edge-chart (push) Successful in 4s
The daemon's `bash` always ran on its own host. A deployment that wants the shell isolated, or on a machine with the project's toolchain, had no way to say so, and the web settings had no surface for it. A sandbox choice now persists in the settings table, and the daemon can be seeded from `sandbox` in claw.yaml. `local` keeps the existing shell; `http` wraps `rhema-sandbox-http` in a `ShellSandbox` and gives every handler a `ShellTools` built over it. Chat turns, forge turns, and coding jobs all read the choice per dispatch, so a switch applies on the next turn without a restart. A remote sandbox starts empty. The first command for a workspace probes `/workspace` and, when it is empty, sends the host workspace as a tarball through the protocol's seed route. Later edits stay in the sandbox; the claw does not copy them back. The web settings gain a System > Sandbox page: the two kinds, the URL and a write-only token, a forget-token action, and the effective workspace. `GET /v1/sandbox` never returns the token; `PUT` validates and persists the choice. Tests: the sandbox state and config validation, the HTTP route round trip, and a remote turn that seeds a fresh sandbox and runs its shell there. fmt, clippy with -D warnings, the workspace tests, and the web typecheck and build pass. |
||
|
|
68671c76ce |
build: move the claw to rhema 0.3.0
android / debug (push) Successful in 2m51s
android / release (push) Successful in 2m37s
ci / checks (push) Successful in 1m32s
ci / test (push) Successful in 1m0s
ci / chart (push) Successful in 6s
ci / docker (push) Successful in 1m33s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m32s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 14s
ci / publish-edge-chart (push) Successful in 4s
The framework releases 0.3.0, so every rhema dependency moves with it: the workspace version, the daemon's crates, and the two integrations. The only new transitive package is webpki-roots, pulled by the provider crates' TLS stack. The agent constructors changed shape. CodingAgentConfig::new takes the provider, model, workspace, and approval, and keeps both handles: CodingAgent::new and CodingAgent::from_session take the config alone, and turn no longer takes an approval argument. The claw's forge and job paths build one config each and pass AllowAll there, the policy every turn ran under before. The vision and mcp tests build their config through the same constructor, so they hand it a MockProvider. fmt, clippy with -D warnings, the workspace tests, and a locked check pass. |
||
|
|
c56f544993 |
feat(web/claw): render the reply, not the tool calls or the thinking
android / debug (push) Successful in 2m17s
android / release (push) Successful in 2m5s
ci / checks (push) Successful in 1m0s
ci / test (push) Successful in 37s
ci / chart (push) Successful in 5s
ci / docker (push) Successful in 1m21s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m23s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 13s
ci / publish-edge-chart (push) Successful in 3s
The web transcript was built to mirror the TUI: every tool call as a shell line or a glyph row, the thinking trace between them, each at the position the stream delivered it. That is the right shape for a terminal session you sit and watch. On the web it reads as machinery in front of the answer, and the answer is what the page is for. `TurnEntries` now keeps only the two entries the reader must handle: a consent card (the agent is waiting on an answer, so hiding it would stall the turn) and an attachment card (the file it handed over). Everything else in the turn renders as the reply, through `AppMarkdown`. The mirror in `useTranscript` still folds tool and thinking events; only the render ignores them. Replay, the pending-echo dedupe and consent placement keep working unchanged, and the bottom-pin watch loses the thinking-length term it only needed while that block took height. `TurnToolRow` had no other caller and goes with it. |
||
|
|
268917646e |
docs: add the tools spec, carried from the rhema repository
android / debug (push) Successful in 2m12s
android / release (push) Successful in 2m3s
ci / checks (push) Successful in 59s
ci / test (push) Successful in 40s
ci / chart (push) Successful in 6s
ci / docker (push) Successful in 1m26s
ci / web (push) Successful in 15s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m23s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 4s
The spec describes this tree now: ClawExtension, the tools/ project (contract, common, notify), the daemon's axum router. It stayed behind when the claw cut loose, and a design record belongs beside its subject. |
||
|
|
504330b1b5 |
test(claw): the github mock answers since, as the forge does
android / debug (push) Successful in 2m24s
android / release (push) Successful in 3m5s
ci / checks (push) Successful in 1m6s
ci / test (push) Successful in 42s
ci / chart (push) Successful in 6s
ci / docker (push) Successful in 1m23s
ci / web (push) Successful in 14s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m28s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 3s
android / debug (pull_request) Canceled after 0s
android / release (pull_request) Canceled after 0s
ci / checks (pull_request) Canceled after 0s
ci / test (pull_request) Canceled after 0s
ci / chart (pull_request) Canceled after 0s
ci / docker (pull_request) Canceled after 0s
ci / web (pull_request) Canceled after 0s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (pull_request) Canceled after 0s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (pull_request) Canceled after 0s
ci / publish-edge-chart (pull_request) Canceled after 0s
The fresh-watch pass now seeds its cursor at *now*, and the issues feed is where GitHub applies `since` server-side. The mock always answered the whole history, so the seeding pass fed an issue the real forge would have filtered out and the new "a fresh watch seeds its cursor" assertion saw one event. The mock now returns the issue row only for the rewound cursor the test sets, and nothing for any other `since`. |
||
|
|
00037993af |
chore: carry dev.sh over — the claw+UI debug loop from the old tree
android / debug (push) Successful in 2m20s
android / release (push) Successful in 2m13s
ci / checks (push) Successful in 1m4s
ci / test (push) Successful in 37s
ci / chart (push) Successful in 5s
ci / docker (push) Successful in 1m22s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m29s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 4s
Unchanged: the paths are root-relative, so the script works as-is in the standalone workspace. |
||
|
|
95e2fcfd57 |
ci: port the rust, chart, docker, web and edge-publish gates from the rhema repository
android / debug (push) Successful in 2m20s
ci / checks (push) Successful in 2m1s
ci / test (push) Successful in 57s
ci / chart (push) Successful in 6s
ci / web (push) Successful in 13s
ci / docker (push) Successful in 1m44s
android / release (push) Successful in 2m7s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m25s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 10s
ci / publish-edge-chart (push) Successful in 3s
The android workflow came over with the tree; the rest of the old repo's CI was framework-shaped. What the claw needs is the rust gate (fmt, clippy, release build with the binary artifact, offline tests), the chart lint/render suite, the daemon image smoke test, the web bundle, and the edge + release publishing pair (latest/sha images on main, exact-version images and chart on a v* tag). Dropped on the way: the crates.io publish-order and claw-boundary checks (nothing here publishes to crates.io; the boundary is enforced by the tree layout now), the cloudflare wasm gate, the binary release legs, and the manifest/crates.io release jobs — all framework concerns that stayed in the rhema repository. Release tags are checked against the workspace version by a verify-tag job that the image legs wait on. |
||
|
|
12ba97c8f1 |
build: resolve the image manifests from crates.io
The Dockerfiles copied every framework crate's manifest because the old root workspace path-patched crossterm and carried in-tree resolution. The claw resolves from crates.io now, so the builder copies only the claw's own manifests, and the vendored-crossterm COPY (and its explanation) is gone. |
||
|
|
552a76ba99 |
build: the claw stands alone
The claw product (the daemon, the feed integrations, the client tools, and the web and android trees) extracted from the framework repository, keeping its history. The framework crates the product pulls are all on crates.io at 0.2.3, so the in-tree path dependencies became versions and the workspace resolves without the framework checkout. |