Skip to content

kb v0.55

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 22:47
· 11 commits to main since this release
8832222

kb v0.55 — web terminal 2, follow-up

A minor release on v0.54. It is mostly polish and follow-ups to the web
terminal: a Files tab that shows what the agent wrote, links and text you can
add as files, End all live on the Terminals hub, phone direct typing on by
default, a terminal page that no longer scrolls as a whole, and whole-session
find and notes on the Conversation rail. It also keeps the terminal files
corpus out of everyday search, shows Claude session cost when the harness
reported it, and adds kb doctor --hooks rows for the terminal Files tier.
There is no schema migration, and kb-code is unchanged.

Before you upgrade

  • Schema: unchanged, V0048. No migration changed since v0.54, so a v0.54
    volume opens on v0.55 and the reverse. There is no new rollback boundary; the
    only limit is the existing V0048 one (a v0.52.x daemon refuses a V0048
    volume).
  • One new config key, and one behaviour change that follows from it
    (#460).
    [terminal.files] federated is a bool, default false. The corpus
    named by [terminal.files] kb used to join scope=all search and the
    /api/context pack like any other corpus, so uploaded and kept files showed
    up in everyday results. It is now left out of those federated reads, the way
    transcripts are left out of default search. A request that names the kb
    (kb=<name>) still gets it, scope=one on the kb is unchanged, and the skip
    is never a degraded[] entry. Set federated = true to restore the old
    behaviour. Recall is unaffected. If you never set [terminal.files], nothing
    changes.
  • Two defaults changed in the SPA, both browser-local and reversible.
    • Phone direct typing is now on by default (#463). It was off and marked
      experimental in v0.54. Every browser that gets the phone panel now types
      straight into the terminal. Turn it off in Settings > Terminal, in the dock,
      or with ?direct=0 (a stored opt-out is kept; ?direct=1 clears it). While
      direct typing is on, the inline composer is not mounted; a Long key
      opens the same composer in a sheet.
    • The Files tab upload box now starts ticked for "index content" (#461).
      Keep in kb is unchanged and stays opt-in. Untick the box before uploading
      anything you do not want indexed.
  • GET /api/identity gains one additive field, terminal (#484). It
    carries enabled and, when a files corpus is configured, files with the
    corpus kb name and the federated flag. Names and flags only, never a path.
    Nothing else on the wire is removed or renamed.
  • Update the plugin checkout (#470). Two small hook fixes live in the
    kb-memory plugin scripts, which run from the checkout, so fast-forward it
    (see "Server, hooks and plugin").
  • Upgrade the kb-term runner with the daemon for the Files "Recent" section.
    The runner changed in this release (a new read-only fs_recent op, and
    kb-termd --ops). Suggested order: redeploy the daemon, re-run the kb-term
    installer and systemctl --user restart kb-termd.service (restart kb-termd
    only, never the kb-term@* holder units; open terminals survive), then update
    the host kb CLI and the plugin checkout.
    • With an older runner, the Files tab's Recent from the agent section
      shows a plain "runner too old" caption instead of a list (the daemon answers
      501 terminal-runner-too-old). Nothing else on the tab breaks.
    • The term-runner row of kb doctor --hooks also needs the new runner to
      list its ops; with an older one it reports a WARN with a fix.
  • kb-code stays at v9.2. No kb-code feature, server or SPA change. Rolling
    out a new kb-code image is not needed. kb-code-cli and kb-lip are
    unchanged.

All terminal features need [terminal] enabled = true and a caller the terminal
tier admits (terminal_admitted on GET /api/identity). With the tier off
there is no door, badge or route.

Web terminal: terminals hub and page

  • End all live (#479). A bulk action on the Terminals hub. It targets only
    the live rows of the current filtered view; ended and filtered-out rows are
    never touched. One confirm names the count and asks you to type END. Kills
    go through the existing End path, and a partial failure is reported in a toast.
  • Clear ended moved out of the Ended summary (#466). The button was nested
    inside the disclosure's summary, which assistive technology flattens. It is now
    a sibling of the disclosure on the same row. Behaviour is unchanged.
  • Restart on the Ended card (#462). An ended terminal's card now offers
    Restart as well as Back to terminals, through the hub row's own restart path,
    and the next terminal id no longer briefly shows "Terminal not found". Dead
    status-chip code was removed, and the reconnecting, ended and ANSI frames have
    visual baselines.
  • The terminal page no longer scrolls as a whole (#487, SCROLLPIN). The
    routed view used to be the page scroller, so a wheel over the header or other
    chrome moved the whole page. The terminal route is now pinned to a fixed-height
    column; the terminal font refits as before. Wheel events over the panel chrome
    scroll the terminal scrollback, and on a phone, drags that start outside the
    terminal and outside the rail's own scroll areas are cancelled. The terminal
    itself, the rail, dialogs, inputs and any element that scrolls on its own are
    left alone.
  • Configurable palette chord (#464). The desktop Commands palette shortcut
    is no longer fixed at Alt+K. Pick a chord from a closed set of safe Alt chords,
    or Off, in Settings > Terminal. The choice is browser-local; Off registers no
    listener. The header tooltip and the dialog footer show the current chord.
    Alt+K remains the default.

Web terminal: the right rail

  • Files: Recent from the agent (#474). A new section lists the files the
    agent wrote since the terminal started, newest first, up to 500, from the
    launch directory down three levels (.git, node_modules and target are
    skipped; the same hard deny list as browsing applies). Each file has Download,
    and the section has a manual Refresh and a freshness caption. It does not poll.
    The daemon relays it on the existing GET /api/terms/{id}/ls route with
    recent=1; there is no new route. Needs the v0.55 runner (see "Before you
    upgrade").
  • Files: Add link or text (#473). Paste a URL or a note, give it a name
    (link-<host>.url.txt or note-<date>.txt by default) and optionally index
    it. It is stored as a small text file through the normal upload queue, so the
    size cap, progress, Kept in kb and Send to terminal all apply. A URL is stored
    as text and never fetched.
  • Files: Pictures strip (#461). Shows the pictures the session's transcript
    refers to, with download, and clear states for no session, not captured,
    loading, error, empty and a presumed binding. It uses the existing session
    view read.
  • Now: subagent drill-down (#467). "Subagents: N" now expands into read-only
    rows with the label, harness, captured or "no end recorded as of last
    capture", tool calls, files edited and an error flag. It reads the session
    card the tab already fetches. A child's counts are never added to the parent's.
    The card's child rows gain one additive field, error_count.
  • Now: Claude session cost (#486). Claude Code sometimes writes a cost
    record into the transcript. When it did, the Cost row shows the latest value
    labelled "as reported at ". Nothing is estimated; without a reported
    cost the row is as before. omp's per-response sum is unchanged. The value is
    shown, never used to rank anything.
  • Conversation: Copy answer (#482). Copies the turn's full final answer
    rather than the capped preview. It fetches the turn on click through the
    existing session view route, checks that the span starts at that row, and
    copies the last assistant prose. Busy, error and not-captured states are
    shown. Nothing is prefetched.
  • Conversation: turn notes and whole-session find (#465).
    • Notes sit beside the star: up to 280 characters each, 100 per session,
      for 100 sessions, kept in the browser and never sent anywhere. The Bookmarks
      filter now means starred or noted, and note text is searchable.
    • Find now asks the daemon over the whole session when not every turn is
      loaded, matching the full prompt, final answer and ask text rather than only
      the previews. The list shows what was searched, with Open turn and Show in
      list for turns already loaded, and honest pending and failure states. Once
      every turn is loaded, search stays in the browser. The wire change is an
      additive conv_q (and conv_q_in=prompt) on ?fields=conversation: at most
      100 matches are listed, total_matches counts all, excerpts are at most 160
      characters, an absent or too-short query leaves the response unchanged, and
      nothing is stored.
  • Knowledge fixes (#468). Remember waits while the bound session's project
    is loading, captions a project taken from the folder, and derives its
    visibility from one function that the caption also uses. A project corpus now
    sends the same global flag as the CLI. Flagged chips survive a rail tab
    switch.
  • Quick replies come from the catalogue (#464). The phone's quick-reply
    chips are now the command catalogue's reply items for the terminal's harness,
    shared across devices, instead of living only in browser storage.

Web terminal: phone

  • Direct typing on by default, Long message sheet (#463). See "Before you
    upgrade". The dock row, Settings and the one-time notice are now worded as an
    opt-out rather than experimental.
  • Phone minors (#475). The Long message sheet closes on send only, not when
    you start typing; the status pill steps aside while the sheet is open; and the
    sheet is bounded so its head and Send stay visible in a short landscape
    viewport. The dock toggle says "Direct paused" when the preference is on but
    direct typing is not currently in effect. Find in Read and the reconnect
    mirror were also fixed.
  • Files on the phone gets the Recent, Add link or text and Pictures
    sections above, since they are part of the Files tab.
  • Scrolling (#487). See the terminal page entry above.

Share sheet and files

  • Android share sheet: non-text files (#476). A file the kb cannot index as
    text, such as an image or a PDF, used to be refused with 415. A share batch
    containing one is now a file share: with the terminal tier on,
    [terminal.files] set and an admitted caller, each file goes through the
    upload and keep step (size cap 32 MiB, quota, magic-byte check, no content
    indexing) and the answer is a redirect to /send-file with ids only. Every
    refusal writes nothing and redirects with a closed reason code. The share
    POST is a navigation and cannot carry the intent header, so it uses a
    navigation variant of the terminal gate.
  • A single oversize file no longer refuses a whole share (#481). Files over
    the 32 MiB cap are skipped and counted, the redirect carries skipped=too-large,
    and the page says what was skipped. Only when nothing is kept does the share
    answer too-large. A share POST without a Content-Length that overran the body
    limit used to end in a raw 413; it now redirects the same way. Other capture
    routes are unchanged.
  • .eml uploads index as text (#469). An .eml that opts into content
    indexing used to inline its raw bytes, so quoted-printable and base64 bodies
    were unsearchable. It now indexes the decoded From, To, Cc, Subject and Date
    headers plus the first text part. Unparseable input falls back to the previous
    behaviour, and the original file is untouched.
  • Kept-in-kb listing uses less memory (#485). The listing now streams a
    bounded newest-first selection instead of decoding and sorting every upload
    row. The response is unchanged: same order, same cap, same truncated flag. The
    saving is memory and allocation, not scan time.

Server, hooks and plugin

  • kb-memory hook minors (#470). The omp status hook now checks its
    throttle floor before spawning git, and the per-session status marker is
    cleared on session start and end, so a resumed session with the same id is not
    held back by the previous run's floor. Both kb-beat.sh and kb-omp.ts
    changed, so fast-forward the plugin checkout, and restart omp if you use it.
    No new setting.
  • Kept-in-kb listing reads only upload rows (#470). The listing pushes the
    upload category filter into the storage read and projects only the columns it
    needs. Output is unchanged. #485 bounds the same listing further.
  • Runner: kb-termd --ops (#484). The runner can now list the operations it
    answers and exit, before touching any socket or tmux. A runner cannot be
    ordered by version (main builds report main-<sha>), so kb doctor asks it
    this way. A test fails when a request type is added without updating the list.

kb doctor --hooks

  • Three terminal rows (#484). term-enabled, term-files-kb and
    term-runner. They read the daemon's new terminal block on
    GET /api/identity and /api/kbs, and ask the local kb-termd for its ops
    (scrubbed environment, 3 s deadline, never the runner socket). A WARN carries
    a fix. A disabled terminal, an unset files corpus, an unreachable daemon or no
    local runner is a SKIP, so --strict does not exit 1 on a host that never
    opted in.

Conversation view groundwork (no visible change)

Three internal SPA modules for a future Conversation view landed but are not
wired into any screen: the turn-window data layer (#489), the kind table, link
resolver and copy rules (#488) and the trigger, pin and geometry helpers (#490).
Nothing in this release shows or enables such a view.

Tests, CI and dependencies

  • Real-runner Files and Changes e2e (#483). The terminal e2e lane now drives
    the real daemon and runner with no route mocks: browse, denied names and
    symlink-escape refusal, download, upload, keep and send, recent, and the git
    diff states. Previously every Files and Changes spec ran against a fake.
  • Flaky terminal tests fixed (#478, #491). Two term-int tests now wait on
    observable state instead of fixed sleeps, and the attach test that sent a
    window-resize signal before the attach had installed its handler now waits for
    the attach to be up.
  • More coverage pinned (#472). Palette chord, Off and boot-seeded chord e2e,
    the desktop Keep default, and a corrected recall test that did not
    discriminate. CI floors were raised for the new witnesses (#462, #472).
  • Docs (#480). Invariant amendments and surface fixes for the web terminal
    waves 3 and 4, including the phone direct-typing default and the files corpus
    federation rule.
  • Dependency advisory (#477). dompurify 3.4.17 to 3.5.1 for two high
    advisories (lock file only, transitive). The web job's audit step was red on
    every PR and is clean again.