- Harness-native commands and subscription limits: Local harnesses now publish their own slash commands to the composer — Claude Code commands and skills,
/usage and /context, Pi prompt templates, Cursor command files, and Codex skills — refuse commands that would change the session behind Cohub, and surface subscription quota windows in the runtime picker, cohub runtime status, and BYOK providers. - Persistent background work: Claude Code processes holding background Bash, Monitor, or Agent work stay alive for up to 6 hours; replies they start sync as live Turns, background shell commands are recorded as
run_command Tasks of their originating Turn, and can be stopped from the API, SDK, CLI, or web UI without waking the model. - Chat prompt continuation: Prompts that omit harness or model now inherit the Chat's last harness, model, thinking level, service tier, and approval mode through one shared rule in
submitSessionPrompt, unifying CLI, API, channels, hooks, scheduled prompts, and board replies; scheduled prompts can now run on local harnesses. - Rewritten product documentation: The docs were rebuilt against the current product surface with a new docs linter and integrity tests, covering apps, CLI, SDK, self-hosting, boards, local runtime, and collaboration workflows.
▸ Fixes (4)
- • Silent Claude Code turns that ended after tool calls are no longer persisted as empty assistant messages; local harnesses report their own outcome and fill an empty reply from the reported result.
- • Claude narration-tagged thinking blocks are preserved as user-facing text instead of being folded into reasoning.
- • Background work survives settings changes — a Turn that cannot reuse a Claude Code process still holding work is refused instead of ending it, and commands whose end the CLI never reports settle on their last terminal status.
- • Space profile member lists now refresh correctly after reload.
- BYOK model providers: Connect your own ChatGPT (Codex) subscription and use its models under
<owner>/<name> in any Space or surface, share a provider with teammates by username, track each user's 30-day requests and tokens, and pause cleanly with a reset countdown when the subscription hits its usage limit. - End-to-end BYOK surfaces: Ships together as a new
/api/me/byok API, client.byok in the SDK, a cohub byok CLI (login, show, share, unshare, leave, rm), Settings → BYOK in the web app, a bilingual product guide, and realtime byok.providers.changed events that update open provider lists and model catalogs without a reload. - Sealed credential vault with single-flight refresh: OAuth credentials are sealed with AES-256-GCM under an HKDF-derived key and bound to the owner and provider name, so a copied ciphertext cannot open in another row; rotating refresh tokens are claimed in the database before use, so concurrent requests across API replicas, agent and worker send each token at most once, and rejected or unknown refresh outcomes mark the provider
needs_reauth instead of risking token reuse. An hourly worker job keeps tokens alive with a 96-hour lead, and pending sign-ins, cooldowns and revocations propagate to every surface. - pi-ai 1.7.0: Upgraded the shared model runtime and agent core, adding the gpt-6.2 Codex models and per-model thinking-off support, with openai-responses replays now sending
status: "completed" on function calls.
▸ Fixes (2)
- • The model availability hover card rendered inside the composer's backdrop-blurred surface and stacked below portaled dialogs; it now portals to
document.body so it positions correctly. - •
apps is now a reserved platform path segment, so /apps/* URLs are no longer misparsed as Space addresses.
- Compaction placement in session history: compaction entries are now stored immediately before the first retained message and owned by the Turn they follow — the end of the previous Turn for a cut between Turns, the cut point for a split Turn — instead of being appended to the triggering Turn, keeping stored history and restored model context in true execution order.
- Turn closing compaction notices: the chat timeline renders compaction as a notice at the end of its owning Turn, using live compaction messages for running Turns and aggregate stats for settled Turns, with the summary loaded lazily on first expand.
- Transactional compaction persistence: anchor lookup, sequence shifting and owner-Turn resolution now run in a single database transaction, and settled owner Turns are rebuilt in place — intermediate index, usage totals and reference index — followed by a
session.turn.updated realtime event so other clients stay in sync.
- Queued messages return to the composer on Stop: stopping a session cancels its queued follow-ups and restores their text and attachments as a draft, with a notice for messages that could not be returned and a waiting state for steer turns.
- Compactions recorded in their triggering turn: context compaction is now written where it happened and context resumes from the retained-anchor message (
placement.beforeMessageId), removing synthetic compact turns and message-sequence shifting across agent, protocol, SDK and CLI. - In-app links push instead of reloading: the host bridge adds
navigation.open, so iOS and Android hand incoming links to the page to push onto the current stack, keeping back navigation and reopening public App URLs in the app. - Crawl policy and deferred analytics: internal paths such as sessions, spaces, referrals and trending are noindexed, non-production deployments are blocked from indexing, real 404s are returned, and the Google tag loads only after the page is idle.
- Space route matching by address: the app resolves
:username/:spaceSlug/... through a dedicated param matcher that rejects reserved platform identifiers, replacing the nested catch-all route.
▸ Fixes (2)
- • Notifications now flag only failed turns with an error glyph instead of showing a status dot on every finished turn.
- • The user message footer sizes its bubble correctly again.
- Instant @-mention space suggestions: space candidates now come from a prewarmed, in-memory corpus instead of an IndexedDB round trip on every keystroke — the composer loads local space signals on focus, ranks them synchronously (with a 150ms hold so results never flash as people-only), and soft-retries once if IndexedDB is dropped after backgrounding
- Endpoint host attribution for local harness usage: a new harness endpoint-resolution layer reads each CLI's own configuration to record the hostname a Turn's calls actually go to — Claude Code
settings.json env plus managed settings and drop-in files, Codex config.toml openai_base_url/provider base_url across profiles, and Pi/WorkBuddy models.json — resolving alongside Turn preparation under a 1s best-effort budget and skipping cloud-provider flags and ${VAR} placeholders - Replay-safe usage attribution: the recorded host is excluded from message and completion digests, so resending an already-completed Turn that newly carries a host is treated as an idempotent replay rather than an immutability conflict, while hostnames are validated server-side against a DNS-label/bracketed-IPv6 pattern
- Unified inbox with multi-channel notifications: Notifications now reach recipients over independently selectable channels — inbox, Web Push/FCM, and digest email — with per-kind preferences, @mention support (
@[Name](cohub://users/<uuid>)), merged inbox rows, one-click unsubscribe, and inbox.changed/notification.sent realtime events. Exposed via client.inbox, client.notifications, cohub inbox, and cohub notifications prefs, with the web inbox living at Library › Inbox. - Generated, forward-compatible host bridge: The native host bridge now drops unknown fields instead of rejecting them, so newer pages work against older hosts (including
cohub host serve). A new generate:host-bridge step emits each host's HostProtocol (Swift, Kotlin, C#) plus iOS xcconfigs from a single native-apps.json source of app identities, deployments and navigation paths, with shared envelope fixtures and formatting/lint gates across every native build. - Usage attributed by credential source: LLM usage is now recorded and billed by whether the resolved model ran on
platform or user credentials, gating only platform calls on the Cohub balance across turns, scheduled prompts, compaction, image-to-text and raw completions. Hourly token usage gains credential and host dimensions, and model rankings surface both through API, SDK, CLI and web. - Subagent sessions in the runtime: Subagent threads from local harnesses (Claude Code, Codex
spawn_agent, Cursor, nested Antigravity) now sync as their own Sessions, created by an agent and linked from the calling Turn and tool call via existing origin/message records.
▸ Fixes (5)
- • Space mention ranking now shares the command palette's personal-activity ordering, so a just-opened space sorts to the top in both surfaces
- • Mention keyboard selection no longer sticks to a stale index when the candidate list shrinks or the corpus is still loading
- • Android sign-in: Sign-in now returns to the app reliably via Auth Tab on
<applicationId>://auth/callback, persists the in-flight request so a process death no longer loses the PKCE verifier, and uses intent: fallback links that open the app without App Link verification. - • Cross-Space file copies:
cohub spaces files cp falls back to download-and-re-upload when the server rejects a copy involving a local Runtime, cleaning up staging per source and creating empty directories on copy. - • Native file downloads: In-page downloads no longer round-trip through base64 — iOS fetches the object URL directly and Android receives flow-controlled binary frames (
writeHostFile), with incoming shares streamed from a host URL.
- Contextual Board export: the export dialog now opens where you are — video from the timeline for the current animation, image from the canvas for the current view at the playhead. It explains why video is unavailable, sizes whole-Board output from the first frame like the CLI, and offers the latest saved input recording, replayed by default only when it was just recorded.
- Simplified animation timeline: the dock keeps what authors use — pick an animation, play, record changes, export. Rare editing (time insert/remove, chapter sequences, camera keys, easing and interpolation, delay and end modes) moves to the Agent and CLI, while values they write still display and play; Record changes now keys any Board edit at the playhead.
- Faster, sharper Board exports: a frame renders with WebGL only when it shows 3D, a tilted camera or a drawing shader, and Canvas 2D otherwise; draw-only scripts start once they enter the view; scripts render at the output resolution instead of up to 2×; video frames are read straight from the render texture; and MP4/WebM encode with x264 superfast and VP9 realtime.
- Harness-aware usage accounting: hourly token usage gains a
harness dimension, and local Harness calls record provider local so a private gateway endpoint never reaches usage pages or public trending. Migration 0089 merges the duplicate NULL-provider rows, aggregation moves into @cohub/core, and activity rankings carry the harness through API, SDK, CLI and web. - Stop confirmation for unreachable native runs: a native turn that stops reporting can now be settled by user confirmation instead of waiting forever, fenced on its last observed activity so a run that reports in stays alive and drops stale prompts. Recovery changes publish over realtime, and the CLI gains
spaces sessions turns stop <sessionId> <turnId> with --confirm-stopped.
▸ Fixes (3)
- • Composer runtime picker: focus follows input modality (keyboard focuses search, touch focuses the list), the Generation tab no longer blocks arrow keys in local Harness lists, Escape closes the thinking-level menu first, tabs remain reachable when a local Harness has no Runtime, and ⌘⇧M selects Agent before opening the picker.
- • Export scripts receive the frame's view before drawing, so the first frame no longer lays out screen layers at the 1600×900 fallback and layers no longer trail a moving camera by a frame.
- •
cohub boards export --timeout now bounds the browser render call instead of a fixed two minutes, and the shared browser resets when a caller leaves mid-frame.
- One composer chip for every Space: Cohub joins the local Harnesses as a tab in the composer runtime picker, listing the Cloud catalog with its generation policy, so picking a model commits Harness and model together; without a local Runtime the tabs are hidden and the chip shows the model name alone. The separate session model dialog is gone.
- More payments qualify referrals: an invitee's first paid subscription period and paid App Store or Google Play orders and subscriptions now count as their first payment, alongside paid orders; redeemed, manual, fully discounted and sandbox purchases are ignored. Billing SDK 2.1.0 lets the webhook read both the 2026-08-21 and 2026-10-20 payload versions, and the billing endpoint should subscribe to
subscription.activated as well as order.paid.
▸ Fixes (2)
- • Model and generation searches in the picker share one focus rule: a mouse or keyboard focuses them, touch does not, so tapping a tab no longer opens the software keyboard.
- • A subscription activation delivered together with its paid order qualifies a referral only once.
- Composer runtime picker: the local harness menu and model chip merge into one dialog — harness tabs preview above the model list, and picking a model commits harness, model and approval mode together, with offline, uninstalled and empty catalogs treated as first-class states (cloud-only Spaces keep the single cloud chip).
- Board playback and export:
cohub boards export renders scripted video about 30% faster by keeping the script sandbox in one browser process and running the next frame's scripts while the current frame uploads; Play and read-only views now hold up to 1.5s until on-screen scripts draw their first frame, so auto animations and the script clock no longer start under an empty item, with ctx.env.ready following and fonts served from the CDN at any size. - Referral rewards on first payment: rewards move off the message post-processing pipeline onto a signature-verified Talesofai
order.paid webhook, paying out on the invitee's first real payment within a 30-day window and removing the per-cycle cap; ReferralDashboard.quota, inCurrentCycle and rewardAvailable are replaced by summary.pending and reward.paymentWindowDays. - Native launch mark: the splash tile collapses onto the C, which closes into an O and grows woven rings until the page is ready, then opens into a circular window onto the page — with a slow-start wave, an offline unwoven drift, a failed-start return to C, and a still mark under Reduce Motion.
- CLI Space paths from cwd:
boards, spaces files, apps publish --file/--dir and desktop open resolve path arguments from the current directory inside the Space workspace, while paths inside documents such as a Board's src stay relative to the Space root.
▸ Fixes (2)
- • Board script imports infer their type from the extension, so
with { type: "json" } and with { type: "bytes" } are optional and bundles whose bundler drops import attributes load as written, while a wrong type still fails. - • Referral qualification no longer rides on the LLM-message post-process job, so billing and referral side effects can no longer block or duplicate each other.
- One browser engine for Board scripts:
cohub boards export, simulate and profile run scripts in headless Chrome, the same sandboxed workers the Cohub app uses, instead of a Node VM. Without an installed Chrome, Chromium or Edge, Chrome's headless shell downloads once, the first time a Board with scripts, shaders or 3D needs it, and the SDK's Node script host is gone while board/testing runs scripts in the page. - Faster, richer Board exports: frames without shaders or 3D draw with Canvas 2D, videos stream raw RGBA to ffmpeg instead of writing a PNG per frame,
script.time lets a timeline drive a script's clock, modules import fonts, images and .bin files as bytes, workers get Geist and Geist Mono, fetch() reports there is no network, profile reports what each script's updates and draws cost, and --at 33:35s is rejected instead of reading 33 as milliseconds. - Seamless Runtime updates: once idle, a background Runtime hands the same Runtime id to a newer CLI while the Gateway keeps the lease and file bridge state, Turns dispatched in between retry, and a failed successor lets the old version resume, so the Space and desktop never see it offline. A foreground Runtime is never replaced.
- Statistics timelines: the stats popover shows one row per model request — the request, then the tools it ran until the next one starts — and one row per Turn this client holds (latest 50) with end-to-end queue, model and tool time; both open by default and remember being collapsed, and Turn metrics keep merged tool intervals to place tool time.
- Faster checkpoint forks: fork restores download checkpoint packs 16 at a time with each
.pack and .idx fetched together, defer the cache repack until bootstrap is ready, record restore sub-stage timings, and poll the bootstrap gate every second for the first minute. - App purchase return URLs:
purchase({ returnUrl }) and cohub apps commerce purchase --return-url return buyers to a page on the App — such as a cart — after success, failure or cancellation, with checkout state read through shared SDK helpers.
▸ Fixes (7)
- • Steered follow-ups:
--steer lets the running Turn finish its tools, then runs before the next model request; Stop still interrupts at once, and local Harness Turns still stop on steer. - • Claude Code cache usage: Turn totals keep the input, cache read and cache write tokens from
message_start when a stream closes a tool call with zero deltas. - • Resolved Turn archives: the API keeps client error statuses (409
runtime_execution_resolved), and the CLI stops re-uploading an archive the server resolved while keeping it locally. - • Runtime binding refresh: a running Runtime watches the bindings file, so a subdirectory bound to its own Space stops mirroring into the parent immediately instead of duplicating native Chats until a restart.
- • Queued follow-ups: Cancel and Steer against a merged or finished Turn fetch the clicked Turn by id and reconcile cached Turns in later phases, so a stale queued follow-up no longer sticks in the cache.
- • Recent Space chips: chips on the Chats list follow the latest visits and activity, holding their order only while the reader is inside a Space chip.
- • Public App URLs on mobile: public App URLs now open in the browser instead of the app.
- Per-harness tool call views: Claude Code, WorkBuddy, Codex, Cursor and Antigravity calls now render as commands, file paths, diffs and todo lists through adapters in
@cohub/protocol/tools, with running state, recorded durations and streamed Codex output instead of raw JSON. - Fork from any settled turn: any finished Turn can seed a new Chat regardless of which runtime ran it; a shared
canForkTurn gates the API, web and SDK, the CLI adds spaces sessions turns fork, and forks no longer inherit the parent's nativeSync. - Turn statistics redesign: the stats popover leads with the resolved model, local harness and its run settings, then shows time and token breakdowns once, a per-model table for Turns that used several models, and a note when figures were not reported.
- Warm runtimes and remembered choices: Claude Code keeps its process between clean Turns to avoid cold starts, Cursor and Antigravity receive history fitted to a budget with omission notes, Codex handoffs resume the projected rollout, lost Runtimes fail unstarted Turns and clean up leftover harness process groups, and usage limits surface with reset times in Chat. New sessions start with the Runtime the Space's last new session used, and each local Harness keeps its last model, thinking level and tier instead of falling back to Cohub on its own.
- Native launch experience: iOS and Android cover the web view with a spinning launch mark until the page is ready; a slow start offers a reload, connection or TLS failures explain themselves with a retry, offline starts retry once the network is usable, and repeated foreground crashes restart from home instead of looping.
- Billing SDK isolation: the SDK-backed adapter moved behind a
CommerceSdk port under packages/billing/src/talesofai with an optional, sha512-verified postinstall fetch, so open-source checkouts install, build and test without a private registry token.
▸ Fixes (4)
- • Sandbox file times: versions are now computed with Node's millisecond math, so
cp -p copies, editor saves and uploads stop failing with "file changed while copying". - • Steered follow-ups: a steer now occupies the next queued slot, and successive steers keep their acceptance order.
- • Claude Code default model: Turns ending in a locally built
<synthetic> error keep the model Claude Code actually resolved. - • App sessions under workerd: session redirects are now handled correctly.
- Shared playback preroll:
boards play and boards seek take --preroll (board.play() / board.seek()), holding the first frame until every watching screen reports its scene, next second of sound and scripts' preload()s loaded — at most 5 s — then starting everyone together; resume gains ifCommand so a replaced playback cannot be revived, and boards viewers / board.viewers() list each screen's readiness, camera, sound and lost audio start. - Playback media cues: viewers preload a show's next three sounds wherever they fall, nested animations included, plus the videos of its next 3 seconds paused at their first frame, so a play, seek or
next that lands on a clip plays from its first word; the media clock also reports how much of a sound's start loading cost. - Script image preload:
ctx.preload([src | { src, width?, height? }]) loads up to 16 images at their on-Board size ahead of a reveal and resolves with { loaded, failed } within 15 s; a prerolled playback waits for it too. - Directed camera control: the stage exposes
cameraDirected (deprecating scriptCamera), and Back to the camera now appears for any directed camera, including a playback someone else started, until the next playback.
▸ Fixes (3)
- • Per-call model usage: CLI runtime attributes each Claude message's own token usage and context — tool calls keep their own counts, the final reply shows the context it actually used, and the turn cost is attached once.
- • App view counts: the Cohub bar and public App detail now report web views only, keeping CLI and other non-human views out of the number through a source-scoped query and cache key.
- • Runtime rebind: a local Turn already running when the Runtime is rebound to another directory is followed to its end instead of being left running in the Space.
- Offline App access:
auth.authorize({ ..., offline: true }) lets an App's Actions use consented Space scopes while nobody is present, until revoked. Space scopes only and always behind explicit viewer consent; each use is capped by what the granting member can still do, and members can review or revoke it in Space settings or via cohub spaces app-access. - Full-page storefront sign-in: Published Apps on managed and custom domains can sign buyers in with a first-party, App-scoped session lasting up to 14 days, restored on reload through
context() and ended by auth.signOut(). App Actions can now verify the signed-in buyer's own orders. - Account-wide App session revocation: App sign-ins and broker-issued tokens carry a per-account epoch, so a web sign-out or
user.revokeAppBrowserSessions() invalidates them on every App origin and device. - Hardened App host routing: App origin resolution is unified behind one resolver shared by
/by-origin and the session endpoints, the sign-in confirmation is served frame-ancestors 'none' and rejects redirects back into auth endpoints.
▸ Fixes (2)
- • App Actions looking up a buyer's order were denied because ownership was compared against the execution account; the check now uses the resolved buyer identity.
- • Navigating back into the sign-in confirmation no longer strands the buyer; a forward/back return cancels and restores the App page.
- Google Play release track: Android now ships a signed AAB from a dedicated
playRelease flavor with cloud Spaces and system file picking but no on-device Runtime, screen control, or all-files access; release automation builds, verifies and checksums both the APK and the bundle, asserting prohibited permissions and services are absent. - Instant App Links after deploys:
/.well-known/assetlinks.json is served no-store and bypasses the edge cache, and Play's legacy and hybrid signing fingerprints plus get_login_creds are published, so Play installs complete sign-in right after a web release. - Live Board shows keep playing: playback snapshots written as
stopped are read as no playback, deleting an animation clears playback instead of stalling the stage, and playback switches to a follow camera and prefetches upcoming items up to 3s ahead at the size they will be drawn. - Five Board starters:
cohub boards examples now offers diagram, slides, custom, rain and arena, replacing basic, workflow, lesson, tilt, senses, sparks and depth; unknown names fail cleanly, Board help groups commands by task, and the SDK drops the removed BOARD_SCRIPT_*_EXAMPLE exports while BOARD_SCRIPT_SPARKS_EXAMPLE declares a count parameter. - Tool-call tracing in the CLI:
cohub spaces turns intermediate <sessionId> <turnId> --tool-calls prints each call's command, result and duration, resolving archived tool-call files in batches of 50 signed URLs; turn tables now clip long excerpts and escape control characters for safe terminal output. - Script logs in Board simulation:
cohub boards simulate reports console.log, warn and error output with timestamps (up to 200 lines per instance in --json), advances long time jumps in 1s deterministic catch-up steps, and the script harness exposes the same log stream.
▸ Fixes (2)
- • Board reads no longer resurrect a
stopped playback snapshot left by older writes, which could make an active show render nothing. - • Decisions requests for Jev models now transcodes WebP and oversized images to JPEG or PNG within Jev's 1568px cap and 256px minimum instead of sending unsupported payloads.
- Config-driven pricing rules and quotas: operators publish a hot-reloaded
pricing.yaml (per usage type, model, provider, benefit, and date window) that applies multipliers or draws quota tokens, with the price frozen at admission so queued work keeps its price and quota refunded on failure, cancel, or never-enqueued tasks. Model listings carry the caller's offer and quota, billing.getQuotas() returns quota balances, and model pickers, the composer, the balance ledger, public pricing, and cohub models ls / cohub generate show discounted prices, original prices, and quota coverage. - CLI turn waiting and streaming:
cohub prompt gains --wait, --stream, --timeout, and --abort-on-timeout, and cohub spaces sessions turns wait re-attaches to a running turn. Waiting follows merged turns, reconciles WebSocket events with HTTP turn state across reconnects, and prints a copyable resume command when a wait times out or is interrupted. - Antigravity local harness: Cohub Turns can run on Antigravity's
agy headless stream-json mode, handing over conversation history and continuing the same conversation, while terminal and desktop Antigravity chats sync read-only. - Bare board media: images and videos accept
props.decoration: card | none, frames pass a contentDecoration down to the media inside them, and script-created temporary items are bare by default, so pixel-themed game scenes no longer show photo cards. The editor and selection toolbar expose the same toggle as Show contents only. - Unified Space references across the CLI: Space arguments and
-s now accept an ID, home, your own slug, or username/slug for get, setup, update, rename, config, pin, archive, search, references, app authorize, and run in either position; runtime commands resolve the nearest bound ancestor directory so they work from subdirectories.
▸ Fixes (4)
- • Checkpoint tree, file, and diff endpoints now apply the guest gitignore-filtered file view, and checkpoint row metadata drops hidden paths and diff data for non-full viewers, closing a leak of ignored files to guests.
- •
cohub spaces sessions tail --json writes only JSONL to stdout and flushes pending writes before exiting, so piping and framing stay clean. - • Pricing pages and purchase panels reserve their loaded geometry, and quota balances hydrate from a user-scoped cache, so the catalog arriving no longer moves the layout.
- • The SDK no longer logs an error when
disconnect() cancels an in-flight realtime connect.
- Quieter Space activity: Set a personal default for danmaku in General Settings and override it per Space. Live and catch-up danmaku show only human-started Turns. Agent and automation successes no longer trigger completion alerts; failure alerts are unchanged. The Space Turns CLI now shows who initiated each Turn.
- Board hosting and playback: Board stages respect reduced motion and Save-Data by default. Model stills are generated on demand, and saved covers remain available in Save-Data mode. Hosts can reuse the framework-independent
createBoardTransport, override item activation rules, and opt in to publishing model covers. - Cold prompt cache estimates: The SDK exports
estimateColdResend, the same estimator used by the web notice. It estimates the cost of resending context from existing Turns and model pricing, with a configurable notice threshold that defaults to $1.
▸ Fixes (1)
- • System-created sessions are now attributed to automation rather than treated as human activity.
- Portable Boards: Link the same Board from any Space and show tasks or chats from other Spaces on it. Use
client.boards.byId(boardId) instead of the deprecated space.board(id); BoardClient.spaceId has been removed. Read the home Space from Board data or replica.state. - Board playback and previews: 3D objects load once per file, with nearby objects first and a cover or silhouette until they are ready. Scripts can opt into edit, play, view, or export modes.
cohub boards simulate can preview a device viewport and capture the scripted camera and screen layers as frames or video. - Chat images and menus: Browse chat images in a gallery, mark areas, and ask about them in place. Mobile long-press opens the same context actions as desktop right-click. Streaming Markdown preserves settled content, and workspace images load with less layout disruption.
- Session attribution: Sessions and Turns distinguish who started them (human, agent, or automation) from where they came from (such as Web, desktop, or mobile). Filter by either in the API and CLI. Invalid filter responses now use
param and unknownKeys instead of unknownSources. A batched backfill is available for historical session labels. - Generation and local models: Model listings and billing share the same generation categories, including dedicated audio usage. The CLI accepts 3D model and motion inputs and can chain supported Meshy steps. The local model picker refreshes its catalog in the background when opened.
▸ Fixes (3)
- • Signing out now ends the Logto session so the next sign-in can switch accounts.
- • Local Codex sessions report native thinking level and current context-window usage. Replaced runtime connections now close their old peers on disconnect.
- • iOS and macOS App Store builds use the required Apple SDK and support uploading with an individual App Store Connect key.
- Cold prompt cache notice: long chats now warn when the provider's prompt cache has expired, showing the token count and estimated cost of the next resend, with a one-click Compact first action that compacts the session before the next Turn. Exposed end to end through the API, SDK, and CLI (
--compact-first). - Configurable compaction summarizer: a new
contextCompaction model task lets compaction summaries run on a dedicated model instead of the session model, with output reserves sized against the summarizer's own context window. - Pi 1.0 Local Runtime: the Runtime now drives Pi 1.0 and later; Pi 0.x sessions sync read-only. The upgrade to pi-ai/pi-agent-core 1.5.2 required vendoring the removed compaction algorithm as a documented bridge, and Anthropic message threads are explicitly disabled until Cohub opts in.
- Mac App Store distribution: the desktop shell gains a sandboxed, App Store–signed build sharing one Bundle ID and App Store Connect record with iOS, with system-browser sign-in, Keychain credentials, and a signing/upload pipeline for IPA and PKG artifacts.
- Board input recording redesign: recording moved from a floating chip into Board scripts settings with an explanation of what it captures, leaving only a compact timer on the canvas; bottom prompts now dock above the desktop toolbar and stack with mobile sheets instead of covering them.
- Camera pitch and bearing: Board cameras can now tip and turn. Camera tracks,
ctx.present("camera", …) and #view=x,y,zoom,pitch,bearing links take pitch (0–60° toward the horizon) and bearing (degrees clockwise), both about the middle of the view, so the flat Board shows as ground in perspective with lifted items and model objects standing on it. Viewers pan and zoom across the ground, script screen layers stay on screen, editing levels the camera first, and --camera exports keep the angles - Models in motion:
props.model takes time, loop and fade; changing animation crossfades over fade milliseconds, autoplay plays the clip on the Board clock, time drives a clip from a timeline track or a script, and loop: false holds the last pose. Object models, running cards and exports pose every model by the same rule, and loaded models record their clips in props.snapshot.clips - Script-directed camera:
ctx.present("camera", { focus, zoom, center, shake }) steers play and read-only views and camera exports, while editing ignores it; a viewer's pan takes control until Back to the camera. Exports draw model objects in their pose and model cards as stills, and renderBoardExport takes models from loadBoardObjectModels for model-aware hosts - Attachments:
attach: { item, node? } makes an item follow another's origin — with node, it rides a named joint of a 3D model object as the model moves and animates. Loaded models record props.snapshot.nodes, and layout, validation, server bounds, deletion and copies all carry attachments; cohub boards examples arena puts a glow on the fox's head - Depth in board units: 3D geometry now lives in board units with z up behind one projection.
boardDepthSurface(placement) no longer takes a view, the depth helpers take a BoardProjection from boardProjection(camera, size), BoardDepthStage.aim(projection) replaces resize, BoardViewport adds optional pitch and bearing, and boardViewToWorld, boardViewRect, panBoardView and zoomBoardView handle every camera - 3D models in the CLI and exports:
cohub boards create and apply record a sandbox glTF file's clips and nodes, exports render model objects and card stills in local Chrome while keeping playback across a frame sequence, boards simulate reports the directed camera, and boards examples arena shows a low following camera with a glow riding the fox's head
▸ Fixes (5)
- • iOS: native messaging now works on app-bound domains by limiting navigations to the declared domain set
- • Native shells: avoid linking a WebKit runtime library that older macOS and iOS versions do not ship
- • App authorization on slow networks: an authorization request that names the Space the App was invoked in now reuses a cached grant before loading the viewer's Space list, and a consent dialog whose Space list failed reloads it on confirm instead of repeating the error; a host can label its confirm action as a retry while
pendingAuth.spaces is null - • Sandbox hardening: sandbox pods now drop every Linux capability, disallow privilege escalation and run under the default seccomp profile, and a NetworkPolicy blocks the cloud instance metadata service (
169.254.169.254, 100.100.100.200 and the IPv6 fd00:ec2::254) for every pod in the sessions namespace, closing an egress path from untrusted sandbox code to node credentials - • Public Space responses trimmed: non-editors now get only what the Space page displays — no env vars, config, bootstrap credentials, storage repo name, checkpoint ids, workspace usage or full sandbox details — and session detail trims the Space for non-members, while listing checkpoints requires Space membership
- Board depth: Board items can now take
depth — lift, tilt, spin, bend (wave, cloth, curl, or custom GLSL exported by a script module), shade, shadow and a back item. Lifted items render as live pictures in one shared PixiJS 3D view with map-like perspective and soft shadows, while pointers, script hit regions, selection outlines and toolbars act on what is actually seen; depth animates along paths and through ctx.present - 3D models on the Board: models with
props.model.display: "object" rest on the Board as lit objects among lifted items with a contact shadow, and skinned models without normals now light correctly. Exports render depth in local Chrome, frame lifted items in whole-board output, and the CLI reports depth in boards inspect, adds boards schema depth, the flip/lift/land/toss/sway/wave/curl presets and boards examples depth - SvelteKit 3 and TypeScript 7 toolchain: SvelteKit moves to 3 with adapter-cloudflare 8, Vite 8, Svelte 5.57 and Paraglide 3. Config now lives in
vite.config.ts, the app uses #lib subpath imports with explicit extensions and $app/env/public, workspace packages resolve through a source export condition instead of per-path aliases and a custom alias hook, and every Svelte app type-checks with TypeScript 7 (@typescript/native) while TS 6 remains only for svelte-check and SvelteKit's JS API - Per-colo edge caching restored: adapter-cloudflare 8 no longer caches public SSR responses at the edge, so Cohub brings back a per-colo page cache that reuses responses only when they are publicly cacheable, cookie-free and have a positive TTL, keeping public pages fast without caching personalized content
▸ Fixes (1)
- • Offline local sandboxes now answer with
409 Conflict and sandbox_offline instead of 503, so a user's machine being away is treated as Space state rather than a server fault and no longer counts as 5xx in error tracking
- Sanitized session Space: session detail, which guests of shared Chats can read, now returns a Space stripped of internals — extra env vars, sandbox config, storage repo name, and bootstrap git credentials (including tokens embedded in repo URLs)
- Indexed recent-Space and Turn reads: new partial GIN index on shared-participant sessions plus partial btree indexes for requested thinking level and context window keep the recent Space list and Turn meta lookups off full scans; the participants query now mirrors the index predicate and sorts nulls last to avoid a backward
last_message_at scan - App Action failure output: failed App Action runs now report the last 4,000 characters of command output, so
ERR_MODULE_NOT_FOUND and similar crashes are diagnosable from the error itself - CLI ships the SDK again:
@neta-art/cohub-cli 10.29.1 restores @neta-art/cohub as a runtime dependency and stages both tarballs, fixing App Actions that import the SDK from the global CLI since 10.25.0 - Read aloud: Chat replies can be spoken with the voice configured in
.cohub/speech.json (Space, then user, then platform). Audio renders once per reply and voice, is stored on the turn, and is shared by every viewer with that voice; session.turn(id).speak(), cohub spaces sessions turns speak, and the chat's Read aloud button all use it, with replies cleaned of Markdown, code and URLs and split so playback starts on the first segment. - Replies to the calling Chat:
space.prompt({ reply: "note" | "prompt" }) and cohub spaces prompt --reply deliver the child turn's final text and images back to the Chat that sent it when it settles; prompt also wakes the caller's Agent to continue, nested delegations stop at depth 4, and the sent message shows "awaiting reply" until it arrives. - 3D models on Boards: Model cards draw in the Board's own canvas with PixiJS 3D:
.glb, .gltf and .stl cards show cached per-view stills, enter in place to orbit, pan, zoom and play animations, and offer shading modes, view presets, snapshots and Use this view as cover through props.model.view and props.model.animation. The engine moves to @neta-art/cohub/board/render (loadModelEngine, boardModelSource, setModelDecoders), and OBJ previews are gone. - Apps open in a new tab: Apps in the Space side panel and Library open in a new tab, with Manage kept as a separate action.
▸ Fixes (3)
- • Live thinking text no longer flashes a phantom space mid-word: stray whitespace text nodes between the stable text and the streaming tail were removed, since
white-space: pre-wrap rendered them as a visible space until the next delta arrived - • Read-aloud segments that stall or finish without saving are marked failed and re-rendered on the next request instead of leaving playback pending.
- • Concurrent speech requests no longer render a reply twice or drop speech updates.
- Unified session renaming: The Space sidebar and Chats list now share one rename flow — double-click to edit, Enter or clicking away saves, Escape cancels, failures stay inline, and a short click delay stops a single click from navigating before a double-click can start.
- iOS 16.0–16.3 support: Username, markdown math, and unclosed-marker patterns no longer use regex lookbehind, and the client build targets Safari/iOS 16, so older iPhones and iPads no longer render blank pages, including share links.
- Simpler fork trees: Removed the fork fold toggle and its cached expansion state, so nested session forks always show the full tree sorted by each fork's own recent activity.
- Forgiving board touch input: A release before the long press now opens a card, touch drag slop rises to 12px, taps catch nearly stopped flings, card keys accept touches within
touchHitSlop, and touching or dragging away from the selection no longer drops it. - Hand-tool picking: The new
handClick: "pick" option lets a mouse click with the hand tool select then open items with a pointer cursor; registry.activation() now receives the pointer type, and createGhostClickGuard is exported for host overlays. - Client-IP removal: Dropped the per-IP anonymous gateway connection cap, visitor IP forwarding to port Apps, and Meta
client_ip_address, since carrier-grade NAT makes per-IP decisions unreliable.
▸ Fixes (5)
- • Wallet transfer allowance: Exhausted purchases now count toward the transferable allowance, so spending all purchased credits no longer reports $0;
cohub spaces wallet funding explains when a signed-in user session is required or the allowance is unavailable. - • Archive while running: The archive menu item keeps its label while a session runs, stays disabled, and shows an explaining tooltip.
- • Session history pagination: Caller-bounded pages and turn windows now keep their pagination sentinels, and older-message cursors no longer skip a sequence.
- • Deep session forks: Descendants flattened into the last fork level now sort by their own activity, so the newest or running fork appears first.
- • Remote image inlining: Image bytes are MIME-sniffed before being declared to providers, so stored objects with a stale
Content-Type no longer cause requests to be rejected.
- Declarative sandbox node pools: A new
placements.yaml platform config routes selected space owners to dedicated node pools with per-pool node selectors, tolerations, and request ratios, hot-reloaded by the API without a restart; pods carry a cohub.run/sandbox-pool label, and a spec change that crosses pools is queued as a pending restart because node selectors are immutable on running pods. - Open Apps from any App list: Apps in the Library list and the workspace side panel now open straight into the workspace app window via a deep-linkable
?window=app route, with a separate Manage action and dimmed styling for unpublished apps. - Unified 7-day Space profile: Usage and scheduled-task stats collapse into one "Over the last N days" sentence with locale-aware separators, zero-like/zero-view stats are omitted, and revenue renders as
$ in every locale. - Placement-aware image prewarming: The prewarm script parses placement config with the API's own module inside its pod, warms every in-use pool in parallel, and skips pools with no matching nodes instead of failing the run.
▸ Fixes (2)
- • Currency formatting uses narrow currency symbols, so zh-CN shows
$ rather than US$ and mixed USD/CNY figures stay consistent. - • The new-chat Space profile no longer prints zero likes or zero views, and empty stat lines are dropped entirely.
- Friendly Space URLs: Spaces are now addressable at
/:username/:spaceSlug across the web app, links, mentions, SDK, and published Apps; a new slug-history table redirects renamed usernames and Space slugs to the canonical address, usernames are limited to one change per 12 hours, and client-side address resolution serves from the local cache while revalidating in the background. - Space overview: The chat profile now shows a compact reach line — all-time App count, views, likes, and paid revenue — plus finished and failed schedule runs over 7 days, backed by
GET /api/spaces/:id/overview, sdk.space(id).overview.get(), and an overview row in cohub spaces get. - Library swipe navigation: On mobile, Library pages swipe between filters with adjacent lists preloaded, per-filter scroll memory, and a shared pager-driven tab indicator; the list was extracted into
LibraryListPane with virtualization intact.
▸ Fixes (2)
- • Board App rooms now distinguish peers by connection instead of account, so opening the same App on another device or tab appears as another visitor and can play against itself.
- • Deleting an animation is no longer blocked by tracks in other Boards that reuse the same target id.
- Library: The Spaces manager becomes a Library where Spaces, Apps, and Scheduled prompts are peer lists. Apps and schedules list account-wide with filters, keyset pagination, next/last run, and Space summaries, open beside the list in their Space workspace, and stream
app.list.changed / cronjob.list.changed events into IndexedDB-first views. SDK user.listApps / user.listCronJobs, cohub apps ls --all, and cohub cron-jobs ls cover it from code. - Billing ledger: Balance activity now pages by cursor through the full history, merging transactions and overages so results no longer stop at ~2,000 entries or cost about a second per page; filters narrow to usage, grants, or refunds, and Space wallets share the ledger. Billing moves first in settings and leads with balance, plan, and top-up actions above a day-grouped activity feed; the CLI adds
cohub me billing and --cursor activity paging. - Board animation playback: Soundtracks lead a smooth wall-clock timeline instead of being rate-nudged, so audio no longer warbles on long frames. Camera tracks frame each animation's own viewport (1600×900 by default), scaled to fit every screen and export; grabbing the camera during playback continues from the visible shot, and the playback bar is the only chrome while watching.
- Collaborative Board scripts: Scripts can call
ctx.broadcast(type, data) to deliver effects to the same script on every viewer, bounded by JSON size, per-viewer rate, and gateway limits. ctx.peers / peerschange expose collaborator cursors in owner coordinates, press states ripple in each collaborator's color, and the script harness plus cohub boards simulate gain peers and broadcast steps. - New Chat overview: The New Chat profile shows the Space wallet balance beside the creation date and lists the three most recent Apps and scheduled jobs (two on mobile), with rows opening the existing managers and
View all jumping to their lists.
▸ Fixes (3)
- • Large Boards: Exports release effect canvases as they are drawn and flatten only visible pixels, cutting frame-over-frame memory growth from ~170 MB to a flat ~1 GB for a long 1080p export; script-history replay is ~7x faster and oversized images count only their pixels against the image budget. Zoom now fits Boards larger than what 5% shows, animation cameras and exports reach 0.1%, and
boards export --at start:end --fps N exports frame ranges. - • Composer paste: Pastes over 20k characters or 500 lines become
pasted-*.json / .txt attachments instead of blocking the textarea, which previously froze for ~30 s on a 300 KB paste; attachment status copy is localized. - • Board apply safety:
boards apply --replace on a Board with items now requires --base-version and names the Board and version instead of silently deleting omitted items; styling an item never draws, such as a text stroke or the fill of a decoration none frame, returns a STYLE_NOT_DRAWN warning.
- Checkpoint save pipeline: a normal save no longer touches the per-space cache repository — it reuses the parent's stat index, writes objects into a throwaway local repo, rebuilds only trees for changed directories, and derives the diff from a change list; cache reads repack geometrically once they exceed 16 packs.
- Checkpoint Board playback: read a Board exactly as a checkpoint captured it via the new
GET /api/spaces/:id/checkpoints/:checkpointId/boards/:boardId, space.checkpoints(id).board(target) and .files.resolve(path) in the SDK, cohub boards get --checkpoint <id> in the CLI, and a read-only Board view in the web app whose media resolves from the checkpoint. - Streaming render performance: realtime intermediate-message patches now keep unchanged message objects, and tool-call summaries are computed in a single pass over content, so long streaming turns no longer rebuild every message and tool view on each patch.
▸ Fixes (5)
- • Large native Turns stage their messages across bounded
messages frames before sealing, so a result over the 32 MiB frame limit settles instead of staying running forever. - • A failed workspace bootstrap is now terminal: the sandbox skips setup and degrades like a failed setup, create-space reruns skip Spaces that are already ready, and late or duplicate failures cannot overwrite a ready bootstrap.
- • Workspace usage scans count hardlinks by inode and use 8 pdu threads, bounding worker memory on hardlink-heavy workspaces.
- • The Board canvas derives its logical size from the CSS box, so rendering lines up with taps on displays whose
devicePixelRatio disagrees with the canvas device-pixel box. - • Non-LLM turns, including direct shell and generation results, are kept out of the usage ledger, so they no longer trigger wallet billing or referral qualification.
- Display recording and replay: sandboxd records a screen from the video it already streams—no second encoder and no extra bitrate for viewers—into Space files, logs each Turn's steps for replay, and adds window-scoped
look, capture, tree and act; live sessions show the agent's pointer and every viewer's cursor. - Device senses for Board scripts and Apps: scripts receive
browser:* events for motion, orientation, gamepads, microphone PCM, camera frames and location, with each source running only while a script listens and the Board is visible plus per-Board consent; live scripts can fetch() and open WebSockets, and recorded input replays in video exports and simulation. - Incremental object-storage checkpoints: saves hash only files whose stat changed, upload one pack per save plus an immutable per-commit manifest, and keep object storage as the source of truth; on a 100k-file, 926 MB NFS workspace, the first save fell from 1158s to 452s, no-change saves from 37.5s to 12.8s, and crash recovery from 1360s to 7.6s with bounded heap.
- Native iOS shell: a UIKit WKWebView app over the
cohub.host.v1 bridge with PKCE sign-in, Keychain-only tokens, an App Group share inbox, downloads to Photos or Files, and TestFlight CI; desktop and iOS shells now share WebKit, auth and host-bridge code through CohubCore. - Visible downloads on every device: one
saveFile() flow reports preparing, progress, saved and failed states with retry; CDN reads expose a downloadUrl served as an attachment, and native shells resolve files.save, stream files.progress and reveal the saved file.
▸ Fixes (4)
- • Agent message ownership: user messages are claimed by
meta.userMessageId, so an abort before a prompt no longer persists later messages under the previous Turn or marks the real owner as interrupted. - • Checkpoint symlinks: saves keep relative links that resolve inside the workspace, and restore creates all links before resolving chains—2,000 links now restore in 0.7s instead of 12s.
- • Sessions tail:
cohub spaces sessions tail streams over a realtime client again instead of failing at startup with realtime transport is not configured for this client. - • Mobile composer: browser tabs cap the shell at
100dvh, keeping the send button above Android browser toolbars.
- Guest funding and balance transfers: Spaces can accept funding from viewers — or, with the public funding toggle on, anyone signed in — via the wallet page, Space app pages, or the new
/spaces/:id/fund route. Balance pays first and checkout covers the rest from one shared tier set; transfers debit only purchased balance, credit fixed denominations, and automatically refund the uncredited remainder through a pre-debit recovery job. Ships with SDK funding/transfer APIs, CLI transfer/transfer-status/public-funding commands, optional request IDs for safe retries, and a space.wallet.updated realtime event. - Chat archiving: Sessions can now be archived for every Space member through a Space-scope
session:archived system label that records who archived and when without a migration. Archive/unarchive is available from chat rows, the chat header menu, the composer notice, and by dropping a chat on the sidebar's Archived label, with an Archived list view and optimistic updates that roll back on failure. Archived Chats are hidden from lists and system label views (the API gains archived=only|include), and any new turn — prompt, note, generation, or native runtime — restores the Chat in the same transaction and row lock as archiving. - Runtime file eviction: A delayed agent job evicts native session files, compaction archives, and recoveries under the session lock, but only when the resume marker matches durable history; forks of an evicted parent rebuild from the database. Session records carry
archivedAt read alongside turn state in the same lateral query, so every list response and session.updated event reports it with no extra round trip. - Tabs in the desktop title bar: macOS now hosts its tabs inside one window with the tab strip beside the window buttons — drag to reorder, tab menu, Move Tab to New Window, and Merge All Windows — instead of native window tabs. The selected tab takes the page's edge color and the strip is shaded toward the text from a shared
EdgePalette; Windows and Linux show tabs from the second tab and closing the last macOS window parks it with all its tabs. - Unified system labels: One shared
getOrCreateSpaceSystemLabel replaces three duplicated label-creation paths, and user label assignment can no longer attach system labels. Archive and turn writes bump updatedAt monotonically so clients order snapshots correctly, and forks never inherit the archive mark.
▸ Fixes (4)
- • NFS ESTALE resilience: Space file reads reopen by path and retry up to three times when a sandbox's atomic rename frees the inode under an open handle, with inline size limits reserved from each opened handle so a retry cannot read an oversized replacement.
- • CDN warm upload stability: The warm job now feeds the S3 SDK through a
PassThrough and aborts on source read errors instead of crashing cohub-system-worker and stalling the upload. - • macOS launch crash: Notification and capture callbacks no longer run main-actor closures on system queues, which trapped and crashed the app at launch on macOS 27.
- • Streaming thinking reveal: Thinking text reveals per patch again instead of appearing in visible 80 ms chunks.
- Generation reserve holds: expensive generations now reserve the model's list price against the Space wallet or personal balance in Redis before enqueueing, using an atomic Lua check so concurrent submissions cannot oversubscribe; holds release on charge, failure, or cancellation and expire after five minutes, falling back to the normal usage gate when Redis is unavailable.
- Board presence and shared replicas in the SDK:
@neta-art/cohub/board/presence now owns cursor, selection, viewport, gesture, and reaction sharing, draws peer activity through mountBoardStage({ presence }), elects a single script-commit writer, orders awareness updates per connection, and shares one replica per Board and user with read-only and playback support. - Layered model context windows:
contextWindow now resolves platform < mod < user < prompt, is capped at the platform value, and reports its source; models.list({ spaceId }) and cohub models ls --space expose it, while cohub spaces prompt --context-window pins it for the rest of a session. - Space like stickers and no cross-Space relay: published Apps can replace the heart with a custom PNG, GIF, or WebP sticker through
space(id).profile({ likeSticker }) or cohub spaces like-sticker; a prompt that mentions another Space or Chat now runs locally with the mention as context, and the reply APIs are gone. - Collapsible fork groups: sidebar fork parents get a persisted toggle that hides their subtree while keeping the top three forks plus running and open chats visible, and surfaces hidden unread forks on the toggle.
- Streaming chat performance: settled markdown is appended instead of re-inserted on every commit, thinking text is batched, turn rails stop re-measuring and re-rendering every frame, and long timelines are paint-contained to cut work as history grows.
▸ Fixes (2)
- • Pi runtime: local Pi Turns no longer fail with "Pi exited during the Turn" once a session context exceeds 8 MB; the extension forwards only fields the Runtime reads and oversized lines are skipped with a
native.pi_line_dropped diagnostic instead of disconnecting. - • Desktop sign-in: concurrent requests now share one device code and open the browser once, fixing "Session not found" errors caused by later opens resetting earlier Logto pages.
- Board App play mode: published Board Apps now open in play, where each visitor drags unlocked items, pans empty space, and script regions take every press. Changes save as a patch over the published snapshot in IndexedDB, scoped to the App version, so a reload restores progress, a new version starts fresh, and a per-version cap keeps the cache bounded; editors get the same via a Play toggle with reset plus undo, the SDK adds a
play tool, and cohub boards simulate accepts {"tool": "play"}. - Realtime visitor presence in App Boards: visitors see each other's cursors, selections and reactions through a shared App room instead of a Space connection. Awareness is now channel-based,
client.rooms.open({ appId, code, create }) joins or creates a room by code on the viewer's behalf, and the gateway admits signed-in accounts to rooms opened for published Apps, with bounded reconnect backoff. - Script capability gating: read-only viewers now see
ctx.capabilities.has("board.commit") as false and commits reject instead of silently failing, consistent across the web app, exports and boards simulate; script controllers only expose the commit host when the editor can write.
▸ Fixes (2)
- • Linux desktop updates: an update is applied once instead of replaying on every launch, a per-data-directory lock keeps one process per install with a D-Bus handoff to the running instance, and a launch superseded by a replaced AppImage restarts the installed one after the updater finishes.
- • Claude Code gateway and approval modes: when
ANTHROPIC_BASE_URL points at a gateway, built-in Opus, Sonnet and Haiku show the gateway as their provider, and a turn with no approval mode now follows Claude Code's local settings rather than forcing acceptEdits.
- Native desktop tabs: the macOS, Windows and Linux shells now run each tab in its own WebView and bridge, so switching never reloads and a crashed page leaves the others intact. Windows and tabs restore at launch, tabs hidden for five minutes are frozen, tab/window/app close guards unsaved work, and a new
tabs host-bridge capability reports dirty state, background attention and key capture (macOS native window tabs, Windows tab strip, Linux AdwTabView). - Board autoplay: mark an app, video, 3D model or finished task result with
autoplay: true and every viewer sees it live as the Board opens. One scheduler runs on-screen items largest-first within per-device budgets, keeps scrolled-off apps warm for 30 seconds, defers to a viewer's local Run/Stop, pauses cards when the full player opens, and honors data saver and reduced motion; video exports draw autoplay clips looping. - Lively Board performance overhaul: video decoders prioritize audio then on-screen videos, off-screen scripts that only draw their own item step at 4 Hz while the runtime replays 60 Hz, items a script moves stay live without repainting or replanning far cards, wide blurs render at the density they keep,
texel shader passes shade once per texel, and JSON script imports are shared and frozen per worker; published 3D model stills are cached in Cache Storage. - Deterministic Board scripts, simulation and export: emit rejects past 16 chained handlers instead of stalling the Board, exports deliver events in document order with the exported view,
--frame renders a Frame as a page with its shaders, and boards simulate, export and profile compile shaders first and report rejected emits, busy scripts, per-owner timing ranges and software WebGL. boards diff and board.diff() list changes between versions, and shader passes take 16 layers. - Unified About panels and version reporting: web, macOS, Windows, Linux and Android gain native About surfaces plus help-menu, user-menu and command-palette entries, backed by one repository URL.
cohub version and the shell-only cli.about report the active CLI, the cohub on PATH and each running Runtime, and Runtimes now advertise their client in runtime.hello for the Space Runtime panel.
▸ Fixes (3)
- • Running workspace measurement: running cloud sandboxes are now re-measured 15 minutes after agent activity with a 2-hour safety pass, stopped spaces are measured 2 minutes after a stop or direct write, and at most two scans run deployment-wide with a 40-minute timeout.
- • App Manager loading: versions now arrive with the App detail in one cached response and render immediately, view stats show by default after a single grant, and opening the App Manager no longer counts as a view.
- • Live tool call streaming: the web client keeps tool call input streaming instead of stalling mid-response.
- Shader rendering overhaul: Board shaders now paint the full view from the first frame — a Board script's filter covers the whole view instead of only the items drawn so far, eliminating the dark first frame and clipped edges. Full-box passes shade at most 1.5 device pixels per CSS pixel scaled by quality, programs compile once in the background while the previous version keeps drawing, script modules load in parallel, and uniform or pass changes reach the GPU without recomposing the Board.
- Named passes and an expanded script API: shader passes can declare their own
layer and a name, switching at runtime via ctx.passes() with zero cost while off. Hit regions accept over: true to receive presses through overlapping items, emit now reaches any Board script by key, items' script.params.* can be animated by tracks, and Math.random() follows the script's seed so scripts replay deterministically. - Shared GPU browser for the CLI: consecutive commands reuse one headless Chrome over a private per-user socket instead of paying startup and shader compilation each time. The daemon exits after a few idle minutes,
COHUB_BOARD_GPU_DAEMON=0 restores one browser per command, and Boards without shaders never start it. -
boards profile command: measures a frame's p50/p95 cost, attributes milliseconds to each shader owner with sprite, state and filter traits, and prints targeted hints — such as a full-view filter that redraws every frame or an oversized owner whose shaders never leave the screen. - Faster, more faithful exports:
boards export --async runs the render as a Space Task and returns immediately; boards simulate gains move steps for hover effects and draws shaders with -o; exports replay animated script params span by span with state checkpoints, keeping single-frame output consistent with video.
▸ Fixes (5)
- • Shader filters covered only the items drawn so far, leaving dark or cropped edges on first paint and while panning.
- • Exports failed when scripts called
emit or commit; they now resolve deterministically instead. - • Animation tracks targeting an item's
script.params.* had no effect. - • Zero-opacity shadows and neutral color filters still allocated an offscreen pass every frame.
- • Collision fields rebuilt every frame and on sub-texel moves; they now rebuild at most 30 times a second live.
- Board clipboard: Copy, cut, and paste now move Board items through the system clipboard with a Board-specific MIME payload, so selections transfer between tabs, survive reloads, stay compatible with older Cohub JSON copies, and yield to ordinary page text selection instead of hijacking it.
- Inline blank space bootstrap: New blank spaces no longer wait in the shared task queue — the workspace directory is created and the initial checkpoint Save dispatched inline before the sandbox pod boots, shortening time to a usable workspace and keeping kubelet from creating root-owned subPath directories.
- Reliable Android helper startup: The phone helper launch now waits up to 2 s for the new process to become its own session leader before returning, so adbd can no longer terminate it mid-
setsid and leave the helper silently absent. - Per-build helper isolation: Helper logs and mute ledgers are namespaced by package name, so debug and production builds installed on the same phone no longer overwrite each other's logs or restore each other's muted apps; the legacy shared mute ledger is migrated on first run.
- Actionable helper diagnostics: Startup failures now distinguish a helper that never ran from one that runs but logs nothing, using a process check alongside the helper log and logcat output.
- Board timeline and video editing: Any Board item can become a clip through the new animatable
visible property, while video, audio and nested animations play via props.time or time tracks. A per-stage media clock keeps playback in sync at 0.25–4×, decodes visible video into textures and stays within the device budget. The timeline adds drag, trim, split, range-cut and insert-time editing, drop-in placement, and cohub boards place for laying clips end to end. - In-editor MP4 export: The Board export dialog renders a chosen animation to MP4 at 25 fps through the Space sandbox, reports live frame progress, waits for pending edits to reach the server and is limited to viewers who can run commands.
cohub boards export draws each video frame at its time, mixes every playing clip with its speed and volume, and pads odd dimensions instead of failing. A new Fill frame action scales selected boxes to cover a frame while preserving aspect. - High-fidelity display control: Touch-screen taps land as real touches where elements render, each step reports its target and flags no-op steps, and a tap that no longer hits what the session last saw stops with
moved. Held modifiers and shortcuts reach remote macOS, Windows and Linux desktops correctly, including ⇧/⌘-click, ⌥-drag, AltGr characters and ⌘ mapped to Control; soft-keyboard latches apply to the next tap. Display trees are compact by default, and screenshots are cached under .cache/cohub/displays/. - Android floating agent screens: Agent displays in the Runtime menu can float in the phone indicator, the indicator opens as a panel, and tapping a live preview opens the screen in its Space. The host bridge adds
display.float, display.presenting and display.open so the page and host stay aligned on the presented screen. Phone control now recovers by restarting Wireless debugging and rebinding the accessibility service rather than asking for a reboot. - Board rendering performance: Shader sprite passes evaluate
sprite(id) once per sprite into float placement textures instead of once per corner, wide blurs and shadows downsample before the Gaussian, and item effects render at device resolution so filtered frames keep text sharp. Board script surfaces cover the view with a margin to survive panning and small zooms, and reduced-motion mode stops redrawing held shaders.
▸ Fixes (7)
- • Agent space-aware query tools now accept
space_id: null and resolve it to the current space, instead of forcing models like GPT to invent a pattern-valid UUID for the space they are already in. - • The Android helper could be killed by adbd before
setsid detached it from the launch command, causing startup to fail while diagnostics reported only "it logged nothing". - • Debug and production builds on one phone no longer clobber each other's helper logs or mute state through shared paths under
/data/local/tmp. - • Board-level script modules now publish with Apps, so Board-wide effects such as rain run on published pages.
- • Closing an Android agent screen while a frame is being read no longer crashes the app; capture readers close on the frames thread and a crashed accessibility service is rebound automatically.
- • Directory listings retry through a cold sandbox connect for up to 15 seconds instead of failing immediately.
- • MP4 exports pad an odd width or height by one pixel instead of rejecting the export.
- Phone control and agent screens: Android 14 phones pair once through Wireless debugging, then a shell helper gives each Space a trusted agent screen with its own focus, mirrors screens without MediaProjection, and injects real touches and keys. A floating edge indicator shows the agent live with Stop, Take over and Hand back, while
display.act plans target by text, wait for the screen to settle, and stop at the first surprise; without phone control, the phone's own screen can still be shared through accessibility. - Local-first Runtimes: desktop and Android reach a served Space's files and screens through a private sandboxd loopback API, bypassing API, gateway and relay with ranged streaming and a fallback that never retries a delivered mutation.
cohub runtime up now serves a folder with no Harness on the Cohub Harness, and a new Linux desktop app (C#/.NET 10, GTK 4, WebKitGTK) joins macOS and Windows with AppImage delta updates, D-Bus single instance and deep links. - Board GPU shaders: Board scripts become Board-wide modules with WebGL 2 passes written as GLSL functions — above or below the owner or as pixel filters, instanced sprites, a jump-flooded
surfaces distance field for collisions, 60 Hz state, declared uniforms and cohub: includes. Loops are bounded, compile errors map to author lines, quality adapts to frame time, and Web exports run shaders through a local Chrome while Canvas exports name fallbacks. - Board visual effects and reactions: items gain animatable
style.filter, style.shadow and style.blend (a frame layers its contents), board.atmosphere vignette and grain, effect shapes and colors on a pooled particle container, one-raster text reveals, and viewer heart/star/spark/confetti reactions through BoardStage.burst. WebGL uses one color-matrix pass and a shared shadow atlas, low-tier devices skip blur and shadows, and reads preserve fields written by newer clients. - Approval cards for local agents: Codex and Claude Code Turns gain
inherit, auto, full_access and read_only approval modes, and command or file permission requests become web approval cards with Allow, Allow for this chat and Decline, relayed to the Runtime and declined after 30 minutes or a stop. Codex adds a per-Turn Fast priority service tier, and cohub spaces prompt exposes --approval-mode and --service-tier.
▸ Fixes (5)
- • Android's share indicator no longer renders as a full-width white bar: a collapsed zero-height SurfaceView is replaced by an edge-held dot that becomes a pill only while an agent works or asks for a person.
- • Display share, stop, status, setup and pair now answer the state after the call, so a share that worked no longer reports that it failed.
- • Phone control pairing now follows the Wireless debugging dialog instead of settings flags, retries a failed code on the dialog's new port, and asks for local network access before mDNS discovery.
- • Android's bundled Node links libc++ statically, so
cohub starts on phones instead of failing to load libc++_shared.so. - • Blocked upstream replays are classified as retryable, so bounded session recovery resumes after a failed model round without overriding terminal errors or cancellation.
- Live Board backgrounds for New Chat: Spaces can point
ui.newChat.background at a .board file to render it live and editable behind New Chat, sharing one replica with Board windows so writes have a single owner; shortcuts and paste route to the Board last interacted with, and the Board menu sets or clears the background without disturbing other space.json fields. - Pele diagram renderer: Mermaid is replaced by Pele, a lightweight renderer themed by CSS variables, so diagrams render mid-stream as soon as their fence closes, keep zoom across re-renders, follow theme switches without re-rendering, and open full screen for zoom plus SVG and PNG export.
- Renewal recovery and checkout identity: Billing now exposes
past_due subscriptions with grace/closing recovery states and allowed pay-invoice, end-recovery, and resubscribe actions; purchases carry a purchase ID through checkout retries and returns, so confirmed selections and cancellations survive reloads, and feature entitlements report validUntil. - Image paste on the Board: Pasting clipboard images uploads them through the same compress-and-durable path as the chat composer and lays them out as a centered row scaled to fit the current view.
- Clickable workspace paths in Markdown: Inline code holding an absolute
/workspace path renders as a file link that opens the file in the workspace.
▸ Fixes (4)
- • Re-authenticate the WebSocket with a refreshed access token when the gateway rejects room subscriptions as
UNAUTHORIZED, so long-lived tabs recover live session output instead of retrying with an expired token. - • Release buffered
session.turn.patch events after a 1.5s gap or buffer overflow, letting the generation stream resync from a snapshot instead of freezing live output until the turn ends. - • Read and version space files through open handles so shared NFS attribute caching no longer produces stale sizes and false
file_conflict errors on saves. - • Allow reading published public apps by ID without space access, fixing
cohub apps download <id> returning forbidden for public apps inside private Spaces.
- Workspace storage usage: Cloud workspaces are measured by a throttled
pdu scan in the system worker, persisted to Postgres, and exposed in space settings with live space.workspace_usage.updated events, SDK types, and cohub spaces get — with pending/ready/stale/error states derived from sandbox and write activity. - Worker bundle cut by 69%: Browser-only imports (
three, pixi.js, PDF/CSV/code previews) are gated behind SSR-safe pending loaders, and ModelSource is now plain data loaded by loadModelSource. Worker upload drops from 7,244 KiB to 2,274 KiB (gzip 1,387 → 413 KiB), plus a build check that fails if a browser-only package becomes reachable from the Worker graph. - App access tokens:
client.auth.getAccessToken({ forceRefresh }) exposes the same credential provider and runtime authorization state the SDK uses for API requests, so published Apps can authenticate calls to their own trusted backends without a second runtime. - Board editing: Dragging from a card inside a selected frame moves the whole selection (Select All drags as one), pastes land in view and step on from the previous paste, and the text tool opens on release with a sideways drag setting the wrap width.
▸ Fixes (4)
- • Presigned upload URLs now canonicalize header values per SigV4, so filenames with consecutive spaces no longer fail R2 uploads with 403.
- • Archived generation previews are cleared by message ordinal, preventing stale previews when persisted messages carry a DB id instead of the stream id.
- • Tool results are never sent to model providers with empty content; empty output becomes
(no output), avoiding Anthropic rejections on error results. - • Bash output truncation now explains when the first line exceeds the 50 KB limit and suggests redirecting output, instead of silently dropping it.
- Native desktop apps: macOS (Swift 6, AppKit, WKWebView, Sparkle) and Windows (.NET 10, WPF, WebView2, Velopack) shells load the web app in the system WebView and delegate account and Runtime methods to a bundled CLI over stdio via
cohub host serve, so desktop and terminal share one sign-in and one set of local Runtimes; per-version runtime copies outlive app updates, with a native folder picker, notifications, deep links, recent Spaces, and cohub auth token. - Cross-Space relay and replies: a prompt that opens with a mention of another Space or Chat is recorded as a note and forwarded there, and the child Turn's final result returns to the calling Chat through an idempotent
session.turn.reply job keyed by Turn — note or prompt wake, up to four hops deep — with identical behavior across Web, SDK, CLI (spaces prompt --reply) and scheduled prompts, plus UI for destination, awaited, and failed relays. - Postgres-backed invitations and guest pages: invite links move from Redis to Postgres with permanent (non-host) links, revocation, retained expired and exhausted records, cursor pagination, and no 100-link cap; accepting is one transaction that spends a use only when it creates or raises a membership. Apps gain
auth.joinSpace, and a Space can serve a published public App as its guest page for visitors without access and invite links. - Unified workspace layout: the Float presentation is gone — chat keeps its own width beside a preview that fills the rest, focus becomes a preset with one-click restore, and chat can be hidden in any layout. A shared pointer-resize and
ResizeHandle drives every divider, persists widths on release, and holds preview content at its end width through panel tweens. - Faster API boot: the OpenTelemetry ESM hook now registers through
module.registerHooks and intercepts only http, https, and ioredis, so application modules are never wrapped — quicker startup, no DEP0205 warning, and no risk of dropped star exports.
▸ Fixes (3)
- • Fixed an API boot crash where
import-in-the-middle dropped names reachable through two export * paths (isSessionTurnReplyMode); protocol model re-exports now flow through a single barrel and display no longer re-exports rtc. - • Fixed macOS media capture by implementing
WKUIDelegate's decision method under its real name, so the page receives microphone and camera access without a second prompt. - • Fixed Swift 6 notification delivery by calling
UNUserNotificationCenter through completion handlers, keeping work on the main actor.
- Board scripting platform: Board scripts now run through one controller shared by the live stage and headless harnesses, survive items leaving scope (deletes, drags out of a Frame, undo) instead of stopping, share a pool of up to four workers with per-instance modules (~3× faster startup and far lower memory at hundreds of scripts), and write collaborative commits once through a leader editor elected via awareness. Scripts gain
ctx.items, change and gesture events, ctx.layoutText(), frameRate/pixelated exports, layered world and screen scenes with present({ z }), and hit regions that opt into drawing tools. - Headless Board simulation:
cohub boards simulate and the new @neta-art/cohub/board/testing harness replay taps, drags, pen strokes, keys and waits against a Board's scripts without saving, reporting resulting changes, commit count and per-script errors, with optional rendered output via -o. - Live Runtime model catalogs and
ultra thinking: running Runtimes rediscover every Harness's models hourly and push updates through a new runtime.capabilities frame, keeping previous models when discovery fails and reaching the Space without a restart. A single protocol-level thinking-level contract (schema, support rules, clamping) replaces duplicated copies across CLI, API, Gateway, Core, Agent and Web, adds ultra for models that declare it, and fits local requests to each model's declared levels. - Referral dashboard state:
referrals.getMine() now returns the caller's received referral alongside each invitation's inCurrentCycle membership, letting clients render invitee status and cycle progress without extra queries.
▸ Fixes (3)
- • Generation requests may now omit
duration, which defaults to 5 seconds instead of failing validation. - • Runtime capability updates no longer block relay heartbeats or execution frames, and overlapping updates collapse into the latest catalog.
- • Board items with negative scale now mirror in place instead of flipping over, and cut-out images no longer draw the card frame used by framed themes.
- Live session cards: Chats can now be dragged onto a Board as cards that show title, latest message, source and run state, and let you open, reply to or stop the chat in place. The server fills each card's snapshot with an access check, and a worker coalesces per-session syncs so stale cards refresh automatically.
- Inline board scripts and a docked animation timeline: Scripts now take input directly in the editor, with per-item parameters, status, errors and restart, replacing the floating script bar. Animation editing moves into a docked timeline with a track tree, keyframe dragging, easing curves, markers, camera keys and settings, while viewers get a dedicated playback bar.
- Session notes: Sessions accept
mode: "note" messages that are recorded without an agent reply, stay in the transcript as context for later turns, and are exposed in the web composer's Note mode (:note) and via cohub prompt --note. Message inserts now retry on sequence conflicts so concurrent notes and replies stay ordered. - Intercepting app navigation: Hosts declare an
intercept origin, and the app runtime routes cross-app links through an App open action, so linked Apps open in the host window instead of loading a nested public page with stacked Cohub bars. - Space Turn list and context load performance:
session_turns now carries a denormalized space_id (with backfill) so Space Turn pagination filters on an indexed column instead of joining sessions, and agent context loading drops the fragile meta-based turn join. Referral rewards are also capped at 5 per 30-day cycle with 72-hour slot holds.
▸ Fixes (2)
- • Chat search now matches Chinese queries by using case-insensitive LIKE, which pg_bigm can index under the production C locale, and long unindexed scans abort at 10s instead of blocking the primary.
- • Board presentations cut directly to one frame at a time with a fade-in, instead of sliding while both pages stayed uncovered.
- Board frames as pages: Top-level frames now form a two-dimensional reading order (rows top to bottom, left to right) that drives
N/Shift+N, directional arrow keys, touch swipes, a frame navigator and a full-screen presentation mode with surrounding content masked; #focus=<frame>&present opens straight into it, and the SDK adds frames, goToFrame, stepFrame, frameNeighbor, frameInset with cohub boards frames in the CLI. - Read-only published Boards: Published Boards keep editor-level browsing without writes — pan, zoom, scripts, animations, media, 3D models, App cards and export — plus per-device view memory and shareable
#focus, #view and #play=<animation>&t=<ms> links. Publishing now also captures model sidecars: glTF buffers and images, and OBJ material libraries with their textures. - Touch-first remote display control: Controlling a display from phones and tablets behaves like a remote desktop — delayed single-tap, pinch zoom and pan, edge scrolling, two-finger right-click, trackpad mode, and a soft-keyboard key bar with Esc, Tab, arrows, function keys, paste and latching modifiers. Displays report their platform and focused text field through Accessibility, AT-SPI, the Windows caret or Android keyboard, so tapping a field opens and zooms to the keyboard.
- Billing-aware Turn stops: When an Agent round overdraws the payer, the worker re-runs the balance gate and stops that payer's running and queued Turns with reason
billing: the current round and its tools finish, the next LLM request never starts, and a user stop is never replaced. The abort event, key and publisher now live in @cohub/protocol shared by API, worker and Agent, and web, CLI and session rows explain the stop and open the purchase flow. - Frames as containers: Dragging blank space inside a selected frame moves it with its contents; a marquee started inside a frame also selects the cards resting on it without selecting the frame itself; the frame tool nests new frames and adopts fully enclosed unlocked siblings in one undoable commit, and clip masks follow moved frames instead of cutting children at old edges.
▸ Fixes (4)
- • Relay liveness: The gateway and sandbox client watchdog silent data channels with pings and terminate half-open sockets, so RPCs fail fast instead of hanging until TCP gives up (~15 minutes).
- • Board menus: Context-menu actions are keyed by stable id rather than localized labels, fixing an
each_key_duplicate crash when Copy and Duplicate shared a translation; static lists and generated media are keyed by position for the same reason. - • Board input: Browser-synthesized
dblclick events from touch and pen are ignored, so a tap followed by a long press no longer starts an empty text draft. - • Web previews: Markdown previews stay stable across unrelated parent updates, tall images remain inside the file preview pane, and Space settings no longer snap back while scrolling.
- Unified board input: mouse, touch, pen, trackpad and wheel now share one SDK threshold model, adding touch hit slop, long-press lift, pinch, inertial fling, edge auto-pan and eased wheel zoom, plus two- and three-finger undo/redo.
- Figma-style keymap: new
handleBoardKeyDown and handleBoardKeyUp APIs centralize tool switching, history, nudging, zoom and Escape-to-cancel, removing duplicated shortcut logic from hosts. - App cards: Board App items stay as lightweight covers with theme tint, name and description until run, then mount the live app; run, stop and open-in-new-tab/window actions are exposed in the selection toolbar and context menu, and embedded views take input only while entered.
- Read-only browsing: media, file and task cards open on a tap for viewers, while editable items still select and drag.
- Longer Song 2 generations:
@neta-art/generation 0.1.41 raises lyrics to 4,000 characters with no cap on the style prompt or ABC score, waits for the provider to finish instead of giving up after 21 minutes, and accepts the optional abc_continue, harmony and lyric_schedule parameters.
▸ Fixes (3)
- • Agent tools: write, edit and bash run sequentially within a batch, so a read issued alongside them sees the files they create.
- • Controlled displays: remote sessions claim keyboard input, so global shortcuts and the command palette no longer steal keystrokes.
- • Generation: object-typed parameters are validated as JSON objects and may be null when optional.
- Layered Board backdrops: Board backgrounds are now composable color, image, and dots or grid layers drawn by a GPU pattern shader that keeps spacing crisp and screen-sized through pan and zoom; built-in themes declare their own backdrops, exports render the same stack, and migration 0076 rewrites stored settings, history, and Save snapshots to protocol v4.
- Incremental Board sync: A Board read can pass
since to receive ordered change deltas instead of the full document, capped at 1000 transactions and 4 MB with a full-read fallback; board.sync() and cached replicas use it to start, catch up, and resync in one request. - Media facts recorded at upload: The fs CDN reads image and video headers to store width, height, and duration in object metadata and manifests, so
HEAD and file responses expose media facts and Boards, lightboxes, and previews size media without probing. - One preview pipeline across OSS and R2: Images and video first frames resize through a shared host adapter with fixed variant sizes, and the web renders them through shared
MediaImage and MediaVideo components; Boards load video and task covers as sized CDN frames instead of decoding video. - Unified file resolution in the SDK:
space.files.resolve() and BoardAssetSource.resolveFile() return { url, media } in one call, replacing the URL-only resolveUrl, resolveFileUrl, and resolvePlaybackUrl APIs and carrying media facts through the IndexedDB URL cache.
▸ Fixes (3)
- • App Manager custom domains: Custom domains now have their own management entry that requests
app.manage once and unlocks alongside views, instead of being hidden behind the views action. - • Video frame sizing: Frames no longer mistake Cloudflare's scaled default still for the source video's dimensions, and OSS frames size from known facts or learned aspect and sharpen with zoom instead of staying soft.
- • Chat image lightbox: Images record their width and height in message metadata, so the lightbox reserves the correct frame before the image loads.
- Anonymous Board viewing: signed-out visitors can now follow public Boards live —
createCohubClient({ websocket: { anonymous: true } }) connects without a token and receives Board changes and playback in real time (actor and source stripped), with per-IP connection caps, 60s re-authorization, and automatic refusal when a Board stops being public. Hosts can drop Board polling entirely. - Board-scoped realtime rooms:
board.changed and board.playback.changed now travel in the Board's own room instead of the Space room, so busy Boards no longer stream deltas to every client in the Space. Subscriptions hold the Board room alone; Space listeners must move to space.board(id).subscribe. - Shared Space file reads with remembered URLs:
space.files.read coalesces same-task reads into batches of 32 and shares concurrent reads of a file per credential; resolveUrl remembers resolved URLs per user in memory and IndexedDB, confirms them in the background, and drops them on space.fs.changed. Adds space.boards.assetSource(), space.files.onUrlChange, and clearFileUrlCache(), replacing Cohub Web's bespoke resolver. - Per-item Board asset invalidation:
invalidateItemAssets(ids) re-reads assets for specific items only, invalidatePath versions a single file's keys instead of recomputing every item, and asset managers can subscribe to a Board asset source to refresh pictures when their file changes. stage.invalidate({ items }) also repaints far plates holding those items. - App Manager parity with native management: the App Manager gains custom domains, tracked promotion links, a Cohub-bar visibility toggle behind the
work.publish.hide_cohub_bar entitlement, publisher attribution, and live handling of version-published and domain events. Its sections now live in resource-kit and render identically in Web and the App.
▸ Fixes (3)
- • Realtime subscriptions recover from
UNAVAILABLE room authorization by retaining the room and retrying with reconnect backoff instead of dropping it; Board replicas re-read only when the Board version moved and surface errors for Boards that became private or were deleted. - • Shared file reads are isolated by access token, so a server client resolving each caller's token never reads with another caller's credential; a shared read that returns 401 is retried alone to refresh that caller's session.
- • Standalone App serving passes HTTP 304 through for conditional requests instead of misreading it as a redirect.
- Custom domains for Apps: published public static and port Apps can be served on your own domain — CNAME it to
cname.cohub.live and prove ownership with a _cohub-challenge TXT. Cloudflare issues and renews the certificate at the edge, port Apps are reverse-proxied with streamed uploads, WebSocket, SSE and the real visitor IP, and each binding costs a one-time $5. SDK apps.addDomain(), CLI cohub apps domains. - Overflow-proof session compaction: long agent sessions now recover instead of failing — history is projected and chunked to fit the summarizer window, folded into a rolling summary, and degraded stepwise (chunked → recalibrated → outlined omission) only when a request still overflows.
- Per-model token calibration: the runtime learns each provider's token-to-estimate ratio from real usage and overflow errors, so switching models or proxies no longer mis-sizes requests or triggers repeat overflows.
- Space files as Board assets:
itemAsset now returns src — a Space path or URL — resolved through the same CDN variants, cache entries and invalidatePath refreshes as built-in cards, with cropped pictures keyed as cover:. - Instant Board first paint: replicas read from the server while IndexedDB restores, so a slow or stalled cache no longer delays the first document; cached state still renders first when it arrives before the server.
- Precise Board hit routing and layering: new
handlesHit suppresses cursors for keys a host ignores, viewLayer: "below" draws DOM views under the canvas, and a touch on the selected item drags it instead of starting a connector.
▸ Fixes (2)
- • Agent sessions that outgrew the context window — such as after switching from a smaller to a larger model — could never be compacted and failed on every turn; summarization is now bounded and recalibrated on each retry.
- • Cohub proxy overflow errors reported in Chinese were not recognized as context overflow, so recovery never ran; they are now classified alongside upstream overflow patterns.
- Local-first Boards: Board replicas now keep their document cache and unsent patches in IndexedDB, replay pending writes after reconnects, and re-read the room when realtime returns. Cohub web drops its bespoke board cache for the shared SDK storage, so a reload paints the last document immediately and no edit is lost.
- Device-adaptive Board rendering: The stage coalesces sync, card ticks, resize and paint into a single animation frame, then paces new cards, texture refreshes and far-plate colors against measured frame time, with per-device LOD, texture budgets, load concurrency and idle prefetch. Fast devices settle in a few frames while phones keep their frame rate.
- Live turn timeline: Streaming turns keep every intermediate message visible, settling the live message in place while thinking and tool rounds fold to one line. The process card switches cleanly between summary and steps, consecutive steps collapse, and streamed markdown hands off without a plain-text flash.
- Board host kit: Embedding apps route custom items through the shared asset pipeline with
itemAsset, place in-place editors via boardTextEditLayout from renderer label geometry, and get grapheme-safe line clamping plus average-color far plates. Extension items gain preview cards that render and name them in any client, and items marked activation: "tap" open on a quick press while a drag moves them without selecting. - Sandbox image caching: The sandbox base image is pinned by digest, the runtime binary moves to the final layer, and build cache is published inline to the registry, so unchanged layers are reused across releases instead of being rebuilt from scratch.
▸ Fixes (2)
- • Disconnected file bridges recover once the Runtime regains its lease, without restarting healthy bridges or the Runtime process.
- • Board canvases redraw in the frame that resizes them, so opening the soft keyboard or resizing the window no longer flashes a stretched frame; touch text editing opens with the caret at the end instead of selecting everything.
- Size-aware Board rendering: Detail now follows each card's on-screen size instead of how many cards are in view — images stay sharp down to a few pixels, text collapses to line bars, and other cards draw as connected far plates repainted only where they change. Loads start where the view is heading, pictures fade in over 160 ms, small pictures keep small textures, and cards panned away stay warm as shrunken copies;
mountBoardStage takes lod (DEFAULT_BOARD_LOD, COMPACT_BOARD_LOD) and stages expose live/far/texture stats(). - Board theme and export fidelity: Web, SDK, and CLI exports now draw one set of built-in Cohub themes —
dark, light, solarized-dark, solarized-light, neta-studio, neta-pixel, and neta-pixel-dark — with matched palettes, shape colors, and card styles. Theme data is generated from the web stylesheets, custom themes still resolve from CSS tokens, boardRenderTheme(id) seeds export samplers, and cohub boards export --theme accepts any theme name. Node exports fetch resized images and video first frames from Cohub media hosts, honor a 256 MiB --image-memory budget instead of a 64-texture cap, and use variable Geist fonts with color emoji. - Consistent Board media sizing: Images, videos, and task previews without a recorded natural size now adopt one — the size is stored and the box takes the media's aspect ratio around its long edge, centered.
settleBoardMediaSizes exposes the rule to the SDK, cohub boards create/apply settle items before writing, finished task cards settle in the same write, and the app adopts sizes it learns while showing a Board; probes read OSS headers, CDN image info, or 24 bytes of a generated video frame. - Unified text layout engine: A single
@chenglou/pretext layouter now drives the canvas, the in-place editor, and Node exports, replacing the measure-only callback with setBoardTextLayouter. Wrapped lines, editor geometry, and clipped labels share one layout, and font loads trigger a targeted relayout. -
cohub feedback command: Report bugs from the terminal with repeatable --file attachments, optional --runtime-logs, and automatic CLI, OS, account, and Space/Chat context, plus --json output.
▸ Fixes (4)
- • Board text wraps where the browser does: CJK text no longer breaks early after a dash or overflows its box, punctuation such as
, and 。 never starts a line, and long URLs break instead of running past the edge - • The in-place editor no longer shifts text or draws it twice, and typing animations reveal glyphs without reflowing the layout
- • Shape labels stay aligned to their padding when left- or right-aligned
- • Task cards created from completed runs record artifact dimensions in the same write, so previews no longer resize on a later sync
- Weakly consistent directory listings: Live file listings now behave like
readdir — cursors resume after the last returned name and stay valid while a directory is written to, instead of failing with directory_changed (409). The API, sandbox RPC, and SDK pagination cursors were simplified to drop revision binding, files.list() silently restarts full listings with 100/250/500 ms backoff, and older sandboxes are retried transparently when they race a write. - Release-time sandbox image prewarming: A new
scripts/prewarm-sandbox.py spins up a temporary DaemonSet on the API's configured sandbox node pool and waits for both sandbox images to land before the image config is patched. Runs best-effort in dev and prod CI with node-selector/toleration safety checks, cutting cold-start pulls after each release. - Resilient Runtime supervision: A local Runtime now recovers or shuts down cleanly after its sandbox bridge exits, even when detached descendants keep inherited stdio pipes open — buffered output is drained, then only Cohub's ends are closed. The sandbox also marks its control pipe close-on-exec so child processes cannot hold it open past sandboxd.
- Native Codex sync hardening: Native ingest recognizes cloud Turn IDs on newer Codex
user_message records, so Cohub-started Turns are no longer re-uploaded or mistaken for conversation forks. cohub runtime up also offers shared Codex sessions to folders that already sync natively without touching their existing settings or history. - Board export fidelity: Node board export now provides the
DOMMatrix that Pixi texture fills require, so images, video posters, and task previews are drawn fitted to their box instead of at native pixel size and tiled or clipped.
▸ Fixes (3)
- • Compressed
.zst Codex rollout reads no longer crash when stopping at a session header, a byte prefix, or a corrupt frame, and caller cancellation is preserved. - • The API settles a running native Turn whose prompt a newer Runtime reparsed, keeping the originally registered prompt instead of rejecting the receipt with an identity mismatch.
- • Listing a space directory while it is being written to no longer fails the read; paged callers still receive
directory_changed and restart explicitly.
- Pixel-exact Board text: Board text now rasterizes at the exact screen density once the camera rests, steps by powers of two while moving, and refreshes progressively across frames starting nearest the viewport center. The canvas backing store follows the device-pixel content box and the pixel budget now fits 4K displays. Custom renderers gain
BoardRenderContext.textResolution; syncTextResolution is simplified and createBoardScene renames onFarLayerFrame to requestFrame. - Instant Runtime reconnect: A Local Runtime whose WebSocket drops now reconnects immediately instead of waiting for in-flight Turns to finish. Detached Turns keep running and replay their result on the next connection, half-open sockets are detected and abandoned, and connection diagnostics record close/handshake context, timing, buffered bytes, and the identity of oversized frames.
- Sidebar chat rename: Chats can now be renamed inline from the chats list and sidebar, including cross-space lists — double-click enters rename, with IME-safe submit, accessible inline errors, focus restoration, and unchanged single-tap navigation on touch layouts.
- Chats source chip: The active chats source is now displayed as a text chip beside the filter control, replacing the subtle dot indicator so a non-default source is visible at a glance.
▸ Fixes (3)
- • Shared Codex app-server releases a thread after each Turn ends, letting Codex Desktop continue a conversation Cohub ran or watched; a Turn on a conversation open in another app now reports a clear message instead of a writer-lock error.
- • Native sync no longer re-reads or resends a transcript that hit a size limit until the file actually changes.
- • Gateway shutdown now closes Runtime sockets with 1012 so runtimes reconnect at once, and a sandbox lease claimed by a reconnecting Runtime answers 503 to keep retries on the short schedule.
- Cursor local harness: Add
cursor-agent as a Local Runtime harness — Cohub Turns hand over history and resume natively, and terminal and IDE Cursor chats sync into the Space read-only, joining Claude Code and WorkBuddy transcript sync. Deploy API, Gateway and Agent before the CLI. - Local-first Board opening: A cached Board renders from IndexedDB before the manifest round trip completes, and space file URLs resolve through a shared memory/IndexedDB cache with batched server reads, background revalidation and fresh retries. Textures, previews and app details load only for live cards, and a changed resource refreshes only the cards that hold it.
- Cheaper Board rendering at scale: Image and video cards now paint as textured fills cut to the card outline instead of stencil-masked sprites, so media-heavy boards batch draws and pan and zoom with far less GPU work. Textures load at their displayed size from the smallest covering CDN variant and sharpen once zooming settles, while DOM views render in world coordinates under a single camera transform with screen-size LOD.
- Board SDK 12 breaking changes: Custom renderers and hosts must migrate —
playbackTimeAt becomes playbackClockAt returning { time, advancing }, view contexts replace zoom with detailed, acquireTexture takes the item, and requestItem(item, edge) loads against a computed boardTextureEdge. Settled playback no longer drives frames. - Per-Space follow-up delivery: A Home Space can set
followupDelivery in .cohub/agent.json to claim queued follow-ups together (default) or one_by_one, with strict validation of path containment, file size and schema; invalid config keeps messages queued and steer messages always run on their own.
▸ Fixes (4)
- • Board pointer input now maps through ancestor CSS
transform, rotate, scale and zoom, so clicks land correctly in transformed or embedded boards. - • Mobile chat lists no longer open sessions behind preview windows; compact screens replace the sidebar main window instead.
- • The command palette no longer shows stale Space names after a rename, since the legacy list cache only fills gaps instead of shadowing per-Space records.
- • Board items share one default reading scale: media and task cards take a 480 long edge, and refits preserve the long edge rather than the width.
- Unified sandbox control: Space settings now consolidate runtime status, image, compute spec, hibernation policy, and startup scripts into a single sandbox panel with inline diagnostics, optimistic saves, and one Restart sandbox action that replaces force recovery.
- Role-based text generation:
cohub generate accepts repeatable --text <role>=<text> inputs for models that require text roles, such as song2, and the positional prompt becomes optional when --text is supplied. - Claude Code model catalog: The local Runtime lists Claude Code's own models, including gateway-discovered models attributed to their gateway provider, with per-model effort levels and a safe fallback to account aliases.
- Sharper Boards on high-DPI displays: The board stage renders at up to 3× density within an 8-megapixel backing-buffer budget, reacts to display and DPR changes without resetting the camera, and caps text textures at 6× with zoom buckets.
- Recent-window model availability: The model selector dot now uses the most recent non-empty traffic window (5m, 10m, 30m, or 60m) and labels the actual window instead of showing a stale 5-minute rate.
- Pluggable local harness adapters: Claude Code and WorkBuddy join Pi and Codex as first-class local executors behind per-harness adapters; a single protocol registry now drives CLI flags, Web picker labels and icons, API validation, read-only enforcement, and native archive formats, so new harnesses no longer require branches in the shared runtime.
- Streaming JSON harness integration: Claude Code and WorkBuddy run one stream-json process per Turn, map read-only access to plan mode with only Read/Glob/Grep, project Cohub history into native transcripts (
~/.claude/projects, ~/.codebuddy/projects), and continue sessions with --resume; startup probes the CLI's flags so older or unrelated binaries are skipped. - In-app feedback: the debug log download is replaced by a cfeed feedback dialog with file attachments, paste-to-attach, an optional debug log, and automatic page, environment, viewport, and timezone context.
- Faster, leaner sandbox images: runtime and game images now share one
base build through Docker Bake, remove duplicate tooling layers, use BuildKit apt/npm/Go cache mounts, and pin Go, Chrome, Bun, and pnpm versions; CI builds and smoke-tests both profiles on a single builder. - Isolated workspace setup: sandbox startup scripts now come exclusively from
.cohub/setup.sh; user config publishing exposes only that script through a dedicated read-only projection, so model credentials and other .cohub files never enter the sandbox.
▸ Fixes (6)
- • File tree listings recover automatically from
directory_changed conflicts with short retries, and directory errors now appear inline with a retry action instead of failing the entire tree. - • Board cards with multiple labels now refresh every text texture, not just the first, when text resolution changes.
- • Space settings section headers keep their labels visible on wider screens.
- • Markdown autolinks now end at Chinese prose punctuation (,。、;:?!…—~「」《》() etc.) while preserving Chinese path segments and ASCII punctuation inside URLs.
- • Sandbox images include NumPy for Python and Blender GLB asset exports; docs note that Cycles CPU rendering must disable denoising since OpenImageDenoise is not bundled.
- • Unrequested local harnesses that fail their startup check are skipped with a warning instead of aborting startup; explicit requests must all pass.
- Space wallets: Spaces can now fund their own Cohub usage — recharge from billing, inspect ledger activity, and have charges settle against the Space balance when it covers the full amount, otherwise falling back to personal billing with no split payments. Exposed end to end via
/api/spaces/:id/wallet routes, client.space(id).wallet, cohub spaces wallet, and a new web page; no database migrations required. - Sandbox startup scripts: Cloud sandboxes now run
.agents/setup.sh in user → mod → Space order after workspace bootstrap, gated on durable bootstrap state so scripts never race an in-progress import. Each step streams bounded logs to .cohub/system/setup/<run-id>/, reports status, exit code, and duration through heartbeats, and is inspectable in Space settings → Sandbox, cohub spaces setup, or the SDK. Local Spaces never run them. - Configurable sandbox environments: New
default and game images (Godot 4.5.2, Blender, Mesa/Vulkan, SDL tooling) with declarative .cohub/sandbox.json preferences merged across platform defaults, mods, project, and Space overrides. Images fall back safely when unavailable, compute is capped by entitlement, and the API surfaces requested vs. effective vs. applied state plus pending-restart hints. - Cursor-paginated directory listings: Space and checkpoint
fs/tree now support pagination, limit (1–5000), and opaque cursors with deterministic name ordering, directory-revision binding (409 on change), and bounded stat concurrency. Legacy files.list() calls still aggregate all pages transparently, and the web file tree renders an early preview page instead of waiting for full enumeration. - Reliability refactors across sync and billing: Session and turn caches are now validated against their space/session context to prevent cross-space cache bleed, failed session loads retry on reconnect, and generation billing routes through a shared Space-wallet-aware path. Task fetches also stamp
X-Cohub-Task-Id and block redirects.
▸ Fixes (3)
- • Failed session loads no longer stay permanently stuck — they retry automatically on transport recovery and reconnect.
- • Sandbox provisioning no longer resets bootstrap state when the worker is already running, and stale provisioning leases can no longer fail a successor's record.
- • Session rename errors are now surfaced to the user instead of failing silently.
- Board pointer gestures SDK:
createBoardPointerGestures is exported from board/stage for draggable DOM item views. It tracks active pointers at the document level, keeps mouse drags alive when pointer capture is lost, and cancels gestures on window blur or page hide. Board stage drags and App cards now share the same implementation. - Shorter sandbox idle defaults: idle sandboxes auto-destroy after 1 hour in production instead of 12, and after 5 minutes in development instead of 10. The API Space policy,
cohub spaces create, and the settings page all read getDefaultSandboxIdleTtl, while Spaces that already store an auto-destroy policy keep their TTL.
▸ Fixes (2)
- • Board mouse drags finish when the pointer release is missed: a move with no buttons pressed ends the gesture at the last tracked position instead of leaving the drag stuck.
- • Pointer capture loss no longer aborts mouse drags on the Board stage or App cards, while touch and pen gestures still end on capture loss.
- 3D models as generation inputs:
generations.create accepts 3d content blocks, and publicAssets.uploadGenerationInput accepts GLB, glTF, OBJ, FBX, and STL files whose extension matches the filename. Uploads keep their extension so providers can read the format from the URL. Meshy 3D tasks bill under a new generation.3d usage type. - Generation SDK 0.1.39: upgrades the Generation SDK and adds the
newapi.audioGenerations adapter for song generation from a style prompt, lyrics, and an optional ABC score. - Provider error classification module: retry rules for provider errors move out of
session-runtime.ts into runtime/provider-errors.ts with dedicated tests. Generation request validation is also consolidated into one resolveGenerationRequestParameters helper shared by the API route and session execution. - Compact side panel tabs: when the side panel's tabs overflow, the tab bar scrolls horizontally and hides tab icons. A
compactOnOverflow attachment built on ResizeObserver drives this without a re-render loop.
▸ Fixes (4)
- • Agent turns retry upstream HTTP/2 stream failures, while quota, billing, and other terminal errors stay non-retryable.
- • Inline public assets reject
+xml media types, which browsers can render as scripted XML documents. - • GLB primitives without materials render with a neutral preview surface, so materialless models are visible. Authored materials keep their colors and surface properties.
- • Generation inputs accept only the 3D formats that providers fetch by URL, and validation errors name the accepted types.
- 3D model previews: Board file cards for .glb, .gltf, .stl and .obj draw a lazily loaded still and open in an in-place viewer. Model loading is size-bounded, abortable and supports Draco, and the SDK exposes
boardModelFormat, isBoardModelItem and modelPreviews. - Per-conversation gateway outbound delivery: outbound replies move out of
bus.ts into a dedicated consumer with a bounded scheduler. Each conversation's replies stay ordered while different conversations deliver in parallel, with separate media and per-provider concurrency limits. Each delivery step is checkpointed, so a retry does not resend completed items, and WeChat videos are sent as links. - Single shared MIME table: four duplicated MIME tables in the API, worker, CDN prewarm and CLI are replaced by
mimeTypeForPath and isTextMime in @cohub/protocol/fs. The table now covers 3D formats, so CDN serving and public uploads share one source of truth. - 2 GiB uploads with structured errors: the single-file limit rises from 1 GiB to 2 GiB. Rejections carry a machine-readable
code (file_too_large, upload_batch_too_large, upload_too_many_files, upload_rate_limited), and rate-limit responses include retryAfterSeconds and a Retry-After header. The SDK exports UPLOAD_ERROR_* constants and batchUploadEntries, and the web app shows localized messages. - Runtime lifecycle channel: published Apps emit a versioned
cohub.runtime.lifecycle message with first-contentful-paint snapshots. A direct parent can subscribe to it, and messages are scoped to the parent's exact HTTP(S) origin and the subscription ID. Containers can reveal content earlier and keep their native-load fallback when Paint Timing is unavailable.
▸ Fixes (4)
- • Board media players stay positioned over their cards.
- • Chapter focus tracks are preserved when combining Board animations, with frame focus as the chapter-start fallback.
- • The mobile side panel tab bar aligns with the column header height.
- • Camera fields in
boards schema camera describe value types, units and composition, and support field queries.
- Windows local runtime:
cohub runtime up now runs on Windows. The CLI downloads cohub-sandboxd.exe, launches npm-installed Pi/Codex through their Node entry instead of .cmd shims, and uses named pipes for the sandboxd control channel and Pi extension. It refuses to start from an elevated terminal, and --display shares the primary monitor by default. Git for Windows is required (or set COHUB_BASH). - Bounded Board export memory: Board exports release intermediate native Canvas surfaces eagerly and enforce a configurable decoded-image memory budget. Video dimensions are preflighted before rendering, and
NODE_DEBUG=cohub:board-export exposes render-stage memory diagnostics.
▸ Fixes (4)
- • Space file reads no longer treat sandbox
IO_ERROR responses as offline; only locally detected transport failures trigger the offline path. - • Directory delete on a non-empty directory returns a 400
directory_not_empty error instead of a generic server error. - • Script workers initialize fonts the same way as native Board text, so script-drawn text matches exported output.
- • MP4 exports with odd dimensions and video frames with changing dimensions now fail early with a clear message instead of an opaque ffmpeg error.
- Live Room connections for CLI agents:
cohub rooms connect streams room events and members over realtime, accepts bidirectional NDJSON publish, send, and presence commands on stdin, replays retained events with --after, and keeps the participant's seat after disconnect. - Optional RTC media for Rooms:
cohub rooms rtc moves media and data channels to an isolated Go/Pion helper (cohub-rtc), replacing the native RTC adapter. It supports PCM, Opus, I420, and VP8 inputs with bounded binary or file outputs, and the SDK exposes a pluggable PeerConnection factory with participant-scoped RTC authorization. - Faster Web shell: compact screens no longer mount or subscribe the hidden desktop Sidebar, the Chats list is windowed while keeping keyboard focus reachable, and chat timelines reuse message projections for unchanged turns, cutting build time by about 43–50% in a Node microbenchmark.
- Example Apps moved out of the repo: NETA World and Campfire now live in the separate Cohub Example Apps Space, published at the latest SDK version, so their sources are no longer maintained here.
▸ Fixes (2)
- • Sidebar App launches now share navigation and resolution, cancel stale opens when the workspace changes, and closed Save tabs can be reopened.
- • Session rows put the running, queued, and failed status back at the start of the preview line, so rows without a preview no longer look empty.
- Decision models: the new
space.decision() API answers noul (yes/no), choice and score questions about text, JSON or images with calibrated probabilities, configured separately in .cohub/decisions.json so decision models never appear in LLM pickers; cohub decision and cohub spaces decision accept inline JSON or a file and upload local images as WebP, while the server bills the upstream-reported cost, retries transient transport and 5xx failures once, and archives every call. - Home Space as personal config: User Rules, skills, prompts, model configuration and the
.cohub/theme.css personal theme now publish from the account's Home Space through the existing Save pipeline (User Rules return source: "home-space"), and the web app resolves the theme from Home; existing config Spaces stay ordinary Spaces, with no automatic migration or fallback. - Board render style layer: themes now shape every card through a
BoardRenderStyle layer (silhouette, radius, shadow, selection, media framing, progress, icons, motion and chrome font) over shared surface helpers, and selection and hover chrome moves to one stage overlay so pointer and selection changes redraw a single layer instead of every affected card — breaking for custom card renderers, which gain style, themeKey and liftedIds plus an observesSelection opt-in, with Neta Pixel Boards rendering pixel corners, mosaic progress and stepped motion. - Four-level fork trees and calmer lists: Chats and the Space sidebar share one fork tree that nests up to four levels with continuous ancestor rails (deeper forks flatten into the fourth), while session rows are redrawn around an end-of-line status pill, unread dots, denser rows and avatars, and a refreshed mobile tab bar that shows the account avatar.
- Ember App: a new standalone Cohub App draws a shared night camp on a live Board — Board scripts render campers, fire and effects, room events fold into one camp state with bounded snapshots, proximity voice and budgeted camera media run over room RTC with relay fallback, and a fire-spirit App Action joins by invite and edits the camp only through camp events.
▸ Fixes (3)
- • Gemini 4 reasoning: every
gemini-4-argon turn failed with "Google stream ended without a finish reason" because pi-ai sent the thinkingBudget the model rejects; outgoing requests now translate it to the thinkingLevel the model expects, guarded by a test that flags when the upstream workaround can be removed. - • Turn stats and scroll: the message stats popover opens on click only (Escape or an outside click still closes it), and the body is the single scroll region so the header stays fixed and only one scrollbar shows.
- • Theme hover visibility: command palette and space switcher hovers stay visible on every built-in theme.
- Server-synced Board task cards: Board task items now carry only a
taskRunId — the server resolves each run's snapshot on every write and, when the run finishes, writes the final state onto every Board in the Space that shows it; cards render queued, generating and failed states with elapsed time and fit their result's aspect ratio. - Authenticated sandbox RPC: cloud sandbox connections now require per-instance RPC credentials that are validated in constant time, bound to resource claims and refreshed with the endpoint, while concurrent instance provisioning is fenced behind a renewing per-space lease so stale claims, reports and results cannot overwrite a successor.
- Board explicit script input and scoped host events: scripts declare their own hit targets with
hitRegions(), observe host selection, view and transform events on demand, and anchor screen-space scenes to scoped items, while undeclared regions stay transparent to input and editor gestures keep their ownership. - Shared theme primitives and Neta Pixel themes: primary keys, menus, spinners and switches now come from one set of shared primitives that themes restyle in a single place, and the new light and dark Neta Pixel themes ship alongside a full contrast, translucency and token pass across every built-in theme.
- Configurable service endpoints: the SDK (
webBaseUrl) and CLI (--base-url plus environment overrides) can target any deployment while keeping production and development defaults, with CLI login sessions, Home Space caches and Runtime directory bindings isolated per API base URL.
▸ Fixes (5)
- • App management: App save, publish and delete failed with 403 for
app_session principals even after the viewer granted app.manage; the writes now use the same permission check as the read routes. - • Chat polish: session rows show stopped turns again, the chat timeline no longer scrolls sideways on iOS, and the sent-to line under a Turn is readable.
- • Board script performance: dynamic script textures are reused safely across frames, script composition order is cached, and redundant accessibility DOM writes are avoided.
- • Board patterns: dot and grid patterns are visible again — dots centered in their tile in muted ink, grid lines in the theme hairline.
- • Mentions and App errors: the official Cohub space is pinned at the top of the @ mention picker with an Official badge, and a signed-out viewer is told to sign in instead of seeing a bare "unauthorized".
- Unified Board scripts: replaced the standalone Sketch item with shared script attachments and a
custom content container, backed by one isolated module runtime and ESM loading contract shared across the browser, CLI and exports, with native scene effects, Canvas drawing, local input and explicit document commits. - App room RTC and device access:
room.rtc() adds WebRTC data channels and media tracks relayed through a Cloudflare Realtime SFU (with simulcast, device switching via replace(), receiver reuse and per-peer events), plus per-App camera, microphone and screen grants declared with <meta name="cohub:devices">. - App rooms beyond the App: rooms now retain the latest 1,000 published events (up to 512 KB) for replay and
room.history(), members carry their kind and Agent model, room.invite() brings in Agents or terminal users, and new cohub rooms commands let an Agent hold a seat and await events in the background. - Resource Apps and shared resource-kit: task inspector, checkpoint explorer, schedule manager and App manager open in dedicated App tabs, rebuilt on a shared
resource-kit with a matching UI kit, host appearance tokens, cache-first lists, realtime updates and protected drafts. - Board performance and URL-first media: isolated card rendering, batched placeholder graphics and eliminated idle frame loops and redundant awareness redraws, while Board media sources accept stable public HTTP(S) URLs alongside relative Space paths.
▸ Fixes (4)
- • Render image
crop on Boards and draw frame borders in their authored color with dash and trim, matching shapes. - • Keep local Board script effects out of copied, cut and duplicated items, and publish script entry modules with their transitive ESM dependencies.
- • Keep concurrently created Boards intact when a create request fails alongside another request sharing the same mutation id.
- • Retry incomplete RTC subscriptions and respect room event limits.
- Board SDK layers: Board is split into framework-free, embeddable layers —
board/editor, board/replica, and a PixiJS board/stage — with an instance-scoped item registry (defineBoardItem / createBoardRegistry) and DOM item views; board/headless becomes board/export/node (SDK 10.0.0, stored documents unchanged) - Roomier chat workspace: opening a chat now renders the full Space workspace for it, so chats get the side panel, windows, focus/immersive modes, and the new chat profile, with instant first paint from seeded session and Space data
- Custom theme islands: a
.cohub/theme.css from the personal config Space applies across the app, and Space themes are scoped with @scope to the chats pane so the inbox keeps the account theme, with a per-device switch and ?theme=safe opt-out - Model-sized WebP images: requests now send a CDN-derived WebP variant bounded to a 1280px long edge (OSS
x-oss-process / Cloudflare /cdn-cgi/image) built at request time, so stored content and history keep original URLs and token accounting follows the smaller bound - Unified Session status and store: one client Session store backs the sidebar, label rows, chat host, and Chats inbox — ids/order stay separate from the single record, turn state is ordered by lifecycle, realtime events apply for every Space, and a shared StatusGlyph gives rows and CLI tables one queued/running/stopping/failed status slot
- Live forked chat nesting:
session.created now carries payload.fork lineage for HTTP and native forks, so chats nest under their parent on first paint across clients while titles stay private
▸ Fixes (4)
- • Model credentials: platform credentials resolve before user providers, endpoints/headers/auth stay bound to one configuration source, user connection keys are always literal, and changed platform prices, connection fields, or new
cohub model IDs are rejected - • Partial Session profiles: incomplete live Session profiles are no longer written back as hydrated, so the sidebar keeps fetching missing profiles instead of showing stale rows
- • Drawer state: a right-edge swipe or Android back gesture no longer mounts the left Sidebar, whose post-unmount loads read stale deriveds; visibility is scoped to left-edge gestures and async continuations are gated on unmount
- • Pi/Codex reasoning effort: reasoning capabilities are preserved in local runtime model catalogs so the picker offers supported thinking levels, and explicit selections (including Codex
none for Cohub off) are forwarded to the native Harness
- Quiet session activity: session lists now derive status directly from turn records instead of per-session assistant stream subscriptions. Sidebars, chat lists, and workspaces receive lightweight
session.turn.updated projections over the existing user realtime channel, with turn-sequence and terminal-state guards that leave generation state untouched, cutting realtime fan-out and render churn. - Turn-state realtime pipeline: a shared
publishSessionTurnStates path in core now drives session.turn.updated for creators and participants across the agent and API, and a new client-side turn-state merger orders snapshots, events, and optimistic prompts by sequence so a new dispatch and a stale snapshot can no longer overwrite each other. - Generation recovery hardening: recovered running turns are now tagged
resumed, distinguish pending snapshots from live output, and re-check turn ownership after awaited recovery and IndexedDB reads. Per-user cache keys guard persisted generation state and release the space-scoped store while keeping server-derived recovery snapshots. - Unified session audience resolution: realtime room routing now shares the session-list permission precedence, resolving access policies for the session then its space and filtering participants by
session.view via role permissions, replacing the previous owner/member-only audience logic. - Toolchain modernization: Node 26 images, pnpm 12, Go 1.27.2 for the sandbox, and converged workspace dependency versions across the monorepo.
▸ Fixes (3)
- • Board item timestamps are serialized correctly in raw SQL bounds-only batch updates, fixing
boards/:boardId/apply returning 500. - • The CLI can download Runtime image attachments again after fixing
Invalid IP address: undefined, and Runtime fetch failed errors now include the underlying network reason. - • The space file panel retains its identity during teardown instead of remounting.
- Board v3 CLI surface:
boards inspect is replaced by a resource-scoped boards get (--only board|items|animations, --items, --within, --rect), boards preset emits bare tracks by default or wraps them when --animation is given, and boards export takes --paper instead of --background. The Board authoring guide now lives in skills/cohub-board/SKILL.md, with CLI README and developer docs rewritten around the document-as-JSON model. - Default runtime screen sharing:
cohub runtime up now offers screen sharing by default on macOS and Linux X11 — Enter accepts, --no-display opts out, and --yes authorizes it. Headless and Wayland-only sessions skip the offer, and an existing Runtime keeps its screen configuration unless explicitly overridden. - Native Android app: a new Kotlin/WebView host (
apps/android) wraps the web surface with access a browser cannot reach — a Keystore-sealed encrypted credential store, PKCE and Custom Tabs OAuth, App Links, deep links, foreground services, and native start-up, files, back and shortcuts — over a versioned, capability-gated cohub.host.v1 bridge defined once in @cohub/protocol and implemented by both sides, so an older host degrades to the browser path instead of failing. Device folders are served as local Runtimes with sandboxd cross-compiled per ABI into the APK, and CI builds signed dev and release APKs. - Remote displays over WebRTC: phones and computers (macOS, Linux X11, or virtual Xvfb screens) share displays with a Space and are watched or steered live from the web over pion WebRTC, with Cloudflare TURN credentials, congestion control and latency tuning (key-frame start, hidden-viewer pause, zero playout delay). Display element trees expose an interface as sanitized refs, roles, names and boxes, and agents drive them through
cohub spaces displays like any other capability. - Board v3: Board is rebuilt on a consolidated architecture with one playback runtime shared across web, CLI and exports, pattern background controls, and a double-buffered far layer that keeps large scenes smooth; the scene model, sync/commit path and export pipeline were unified and the legacy authoring and ops services removed.
- Live, local-first lists and Session snapshots: Chats and Spaces render from IndexedDB and follow
session.created/session.updated realtime events whether or not they are on screen, so switching tabs or filters costs no request and shows Telegram-style Connecting…/Updating… instead of per-fetch spinners. Every Turn stores its own stats and a settled Turn publishes one complete Session snapshot including the active Turn, removing per-Turn refetches; prompted Sessions are linked across Spaces in both directions, and search merges sessions and turns into one Chat result. - Images as URLs end to end: images now travel as URLs through the database, realtime events, agent context and model requests, with the model runtime the single place that resolves them — Anthropic, Chat Completions and Responses APIs receive the remote URL natively while other APIs get them downloaded and inlined per request. Each entry point bounds an image once with the shared
@cohub/media normalizer, so the agent no longer downloads or re-encodes attachments or re-hydrates history images.
▸ Fixes (8)
- • Short user messages now sit in a grid so the bubble stays right-aligned with its footer instead of drifting from it.
- • Two-line session lists dim the preview line so it no longer competes with the title.
- • Board v3 migration unblocked:
0067_board_v3 no longer aborts when a Board holds legacy file nodes whose id is a path (such as world:file:characters/x.md). Board v3 item ids cannot represent those, so the nodes are dropped instead — their Boards keep working, and every source row, the dropped ones included, stays archived verbatim in the migration:board-v3 transaction. This also releases migrations 0068–0073, which had never reached production. - • Migration jobs now keep their pod for an hour after finishing, so a failed run still has logs by the time the workflow prints its diagnostics.
- • Board strokes and far layer: strokes now render where they land with incremental, quantized live samples and mitred joints, the far layer is double-buffered to stop flicker, local patches match the server, and a stale history step is dropped instead of blocking undo.
- • Generation stream resilience: out-of-order rounds and finalizes no longer reset the stream reducer — late events only join history, and a patch that cannot apply buffers live events and reseeds from the snapshot once per message, so the live message no longer freezes until the Turn ends.
- • Command palette and sidebar: palette search loops are fixed, the ⌘K hint is restored, and sidebar turn state stays live without per-turn label refetches.
- • Android lifecycle: switching apps no longer shows a false crash toast, sign-out sticks across restarts, and restricted settings open App info once instead of failing control.
- Desktop open fail-fast:
cohub desktop open now fails fast when the desktop that started the chat is gone — the target tab accepts a command before running it, so one nobody accepts within 10 seconds (closed, asleep, or offline) settles as no_active_client instead of waiting out the timeout, and a tab that wakes later never opens it. A plain open waits up to 30 seconds by default while an App --call still waits up to 10 minutes; the SDK adds desktop.accept(), defaultDesktopCommandTimeoutMs(), and the accept/open timeout constants. - Claude Code identity for proxied Claude requests: the agent upgrades
@earendil-works/pi-ai to 0.87.1 and adds a requestProfile that identifies Claude requests as Claude Code — the official CLI system identity, the Claude Code beta header, and API-key auth — with provider request-context tests pinning the exact payloads. - Lighter, faster CLI: the Board renderer and PixiJS are bundled into a lazily loaded
boards export module and sharp loads only for image uploads, shrinking the install from about 156 MB to 70 MB and starting every command about 0.2 s faster. Self-update asks the registry first and reinstalls only for a newer release (recorded in ~/.cache/cohub-cli/self-update.json) instead of reinstalling every 6 hours and briefly removing the cohub bin, and boards export renders with Geist like the web app, falling back to a host sans for glyphs Geist lacks. - Unified request profiles in
@cohub/model-runtime: the Codex session/thread affinity and the Claude Code identity move out of the agent into one (model, options) => { headers, onPayload } profile abstraction that wraps every provider API, so compaction, image-to-text, and title generation resolve their own identity instead of inheriting one by accident of which API happened to be wrapped; the claude-code profile guards on the Anthropic Messages API, threadId stays a Cohub-only hint, and the golden provider snapshot records the codex headers it was already sending.
▸ Fixes (4)
- • Agent thinking level survives compaction: compaction no longer drops the resolved model and thinking level with the archived prefix —
resolveSessionSettings() is shared by the load and rewrite paths and the rewritten file is rebuilt as one linear parentId chain, so a session keeps its model and level; a session with no recorded level restores it from the session file, then the user's latest explicit selection, then the model's lowest level, and writes it back so later loads and compactions carry it. - • Generation side panel shows media only:
toGenerationTaskView() projects media outputs only, so revised prompts and text-only refusals stay in the raw result instead of listing as text tiles; GenerationOutputType drops "text" and completed tasks without media are left out of the feed. - • Claude Code tool names: the claude-code profile now restores declared tool names on responses — upstreams recase tools (
read → Read, bash → Bash) and return calls under those names, so every call except find failed with "Tool Read not found"; each call now maps back to its declared tool case-insensitively. - • Board playback camera: playback culls, preloads, and picks LOD from the animated camera rather than the editor camera, draw reveals keep their stroke ink and paint nothing at zero progress, and public App pages and details are revalidated so a publish shows on the next load.
- Apps platform: trusted Apps published or installed in the Shell Space now receive Host consent and run without an authorization dialog, declared file handlers register in
.cohub/apps.json with per-file windows and "Open with", and the new cohub.app.runtime protocol plus SDK client.app.window, onBeforeClose, onDrop, onLaunch, appearance sync, and locale wiring let Apps own their window, follow the host, and receive dropped or opened Cohub resources. - Workspace side panel: rebuilt around chat outputs as This chat | Files · Media · Apps, with live queued/running generation progress, files an Agent wrote or edited, a Space-wide filterable Media view, and the old header button retired. Data renders from IndexedDB first and reconciles silently over
task.* realtime envelopes without polling. Backed by GET /api/sessions/:id/files, SDK toGenerationTaskView() and session(id).files(), and cohub spaces sessions files. - Media delivery: a new
@neta-art/cohub/media module resolves previews and metadata through one ordered strategy chain — CDN image variants, video stills, OSS meta headers, then image/info — with the original as fallback, and folds provider covers into the media they depict (a video's first frame, music art) under one shared rule. Generation inputs are uploaded to unlisted URLs instead of inlined base64, and task list views drop inline payloads (100 runs fell from 20 MB to 0.26 MB), with cohub generate now reporting each output's size, duration, and last frame. - Media viewer: the lightbox now previews images, video, and audio as a single swipeable gallery driven by a dedicated gallery-swipe gesture layer, with deferred outputs resolving on demand, real filenames on download, and a fixed CSS cascade bug that let pinch zoom scale the page and swallow swipes.
- Runtime reliability: the CLI/gateway runtime now pairs tool results with the message carrying their call, keeps one aborted stream from killing the Runtime connection, and repairs legacy Pi extensions and Codex hooks before any harness starts, so upgrades from CLI 8.0–8.2 no longer fail with
Cannot find module …/native-pi-extension.js.
▸ Fixes (4)
- • Unparseable
runtime.native frames are answered through runtime.native.result with the first zod issue paths instead of closing the socket with 4400, so one bad conversation fails alone and the import continues. - • A JsonRpcProcess close it initiated itself no longer broadcasts a harness failure, and a signalled exit reads "terminated by SIGTERM" instead of "exited (143)"; a fatal close code and reason now surface in the terminal error.
- • Sidebar App icons span both lines at 28px and use grapheme-segmented, CJK-safe initials, so names like "我的" or leading emoji no longer wrap or split into broken surrogates.
- • Task lists strip inline audio, and cached summaries are slimmed in place rather than re-fetched.
- Native Runtime sessions rebuilt on harness files and control planes: Pi and Codex session files are now the only durable record and outbox while the server is the only ledger — no local delivery receipts. The Runtime watches bound folders, ingests Turns in small idempotent WebSocket batches, asks the server what it already has after a restart, drives Pi via a self-contained extension and Codex 0.156+ through its shared app-server, and removes the Codex hooks, Pi capture extension, IPC capture, and native sync stores.
- Large-Board rendering made cheap: the connection layer caches per-layer relation geometry, redraws only relations touching manipulated nodes, culls to a new
cullRect input (exports pass their region), clips dashes, degrades unreadable dashes/arrowheads/labels to plain strokes or nothing, and falls back to solid strokes past a fixed dash budget — pans, hovers, and drags stay off the O(relations) path; the document itself never changes. createConnectionGeometryCache, connectionHitRadius, and stableCullRect are now exported. - Runtime import runs inside the Runtime: imports are newest-first, pausable with Ctrl-C and resumable, with bounded concurrency up to 8; persistence is event-driven and separate from live previews, transcripts parse only when a Turn begins or ends, previews send only changed messages, and stops are pushed through the Gateway instead of polled.
- Native turn lifecycle and realtime restored for native sessions: realtime and message post-processing work again for native Turns, imported history is announced once per Session, unlinked silent Turns are surfaced for attention instead of being guessed finished, and a connected Pi exposes the current Turn to its tools via
COHUB_TURN_ID. - Standalone App URL removed end to end: the
standaloneUrl field and its broker helpers are gone from API responses, the version-published realtime event, protocol/SDK types, and the web detail and publish views, leaving one fewer origin abstraction to keep consistent.
▸ Fixes (1)
- • Space tables:
spaces ls and spaces get render whitespace-collapsed, width-clipped descriptions so multi-line text no longer breaks row layout, while --json keeps the raw value; the shared truncation helper also deduplicates the same logic in search.
- Codex rollout lineage in native sync and import: native sync now follows Codex
history_base pointers across rollout files, so a thread that was rolled over, reverted, or compressed still imports and continues as one coherent Chat. Ancestor rollouts are tracked as settled boundaries addressed by rollout id, Turns carry a merged lineage sequence for stable ordering, archived and .zst-compressed sessions are discovered transparently (decompressed once into a bounded cache), and superseded siblings are reported rather than imported twice. - Capability-aware skill expansion:
/skill: expansion is now gated by where the turn actually executes. A single shared loader resolves the execution target (cloud sandbox, local sandbox, or native harness), filters out scopes the target cannot reach instead of surfacing broken paths, fails closed on provider lookup errors, and serves workspace-relative skill locations to native Pi/Codex harnesses while passing unknown skills through verbatim. The API and worker now share one implementation instead of duplicating scope IO and expansion logic. - Standalone App origins resolved at the Worker entry: a new hand-written Cloudflare Worker entry runs before the SvelteKit adapter, so every path on a published App's standalone hostname — including prerendered routes like
/, /docs, and /pricing — resolves to that App rather than the marketing shell. The entry is bundled with the generated adapter but keeps a single source of truth for public env values through a build-time generated module and typed declarations. - Faster standalone App page loads: standalone App navigations now serve the cached App detail immediately and record the view through
ctx.waitUntil after the response, instead of blocking every load on a view=1 API call that bypassed the detail cache. Repeat navigations no longer wait on the API, a background refresh that finds the App gone drops the cached detail, and cold-cache loads still resolve and record in one call. - Sidebar help menu: help resources now live in a dedicated sidebar footer menu that groups What's new, keyboard shortcuts, and Docs, replacing the scattered inline shortcuts and changelog links and keeping the footer controls consistent across desktop and mobile.
▸ Fixes (3)
- • Importing a Codex leaf archive that references history it does not carry now fails explicitly instead of silently resuming with truncated history, and the caller rebuilds from durable cloud Turns.
- •
cohub runtime import now streams progress with pending-Turn counts, reports skipped and failed conversations separately, treats an interrupt as cancelled rather than a failure, and keeps a normal skip from flipping the exit code. - • Native sync failures are aggregated into a single throttled warning with a retry delay and summarized causes instead of per-flush noise, and emit a recovery log when the Runtime reconnects.
- Durable-first native Turn persistence: native Turn durability is now fully decoupled from Session projections. Title, latest-message, participant, and timestamp metadata are applied as best-effort post-commit projections, so a Session summary update can never roll back an already-committed Turn — projection failures are logged and swallowed instead. Each projection takes a row lock and advances monotonically (newer-message guards plus
GREATEST on lastMessageAt), so delayed or out-of-order native events can no longer regress the chat list or clobber a newer title. - Persistent receipt backoff for native sync: failed native receipts now persist an exponential, jittered retry backoff (1s → 30s, capped at 6 attempts) under the sync store's
retries/ directory, so backoff survives daemon restarts and is no longer bypassed by immediate flushes. Reconnect or capture wakes may still wake healthy work but no longer cancel an in-flight retry timer, and archive flushes are gated while a receipt is backing off. - Structured native sync diagnostics: gateway native-runtime failures now emit full context — event type, space, owner, session, and Turn IDs — alongside the serialized Postgres error surface (
code, detail, hint, constraint, table, column, schema, position) and nested cause chains. Operators get actionable sync-failure logs while the client still receives only a generic retry receipt. - Session media browser: the workspace header now surfaces a
Browse generated media action whenever a session has generation tasks, opening the Task Browser App against that session so generated images and media can be reviewed in place. Availability is discovered from a single bounded tasks.list query and refreshed by task.created / task.updated realtime events instead of polling, and the App itself now uses the current auth.authorize scope model with a silent one-shot grant attempt before falling back to the explicit access prompt. - Event-driven native sync: native Pi/Codex reconciliation no longer runs on fixed 5-second scans. The Runtime supervisor wakes sync only on a native capture or a channel reconnect, then applies bounded exponential backoff (1s → 30s) after a failed flush, so idle Runtimes stop scanning while reconnects and missed Codex hooks are still closed. Lazily-created transcripts, vanished workspaces, and unbound projects are classified as ordinary skips rather than capture failures.
- Local-time CLI output:
cohub tables and summaries now print timestamps in the machine's local timezone with an explicit UTC offset instead of raw UTC ISO strings. Every column whose key ends in At/Timestamp is formatted centrally, structured --json output still returns the untouched server values, and absent values render empty rather than a confident-looking epoch. - Dedicated queue Redis: the gateway now requires an explicit
BULLMQ_REDIS_URL and fails fast at startup instead of silently falling back to REDIS_URL or localhost. Queue traffic stays isolated from cache/session Redis in every environment, with the deployment secret templates updated to match.
▸ Fixes (5)
- • Concurrent or replayed native turns no longer overwrite a newer Session title or latest-message summary, and a failing Session projection no longer surfaces as a native sync error.
- • Failed native receipts no longer re-hit the API on every flush — a durable backoff gate prevents retry storms after transient failures while replays preserve the original receipt.
- • Native sync skips are only a warning-free no-op — Pi and Codex adapters no longer surface
Cohub sync pending for not-yet-written transcripts, and cohub runtime import records such captures as skipped rather than failed, so a normal skip no longer flips the command's exit code. - •
cohub runtime import reports skipped and failed conversations separately, keeping real transcript and daemon errors actionable while remaining quiet about expected skips. - • CLI diagnostics and runtime strings are now English-only across CLI, server, API, SDK, logs, and developer tooling, with web UI copy moving fully onto the i18n/Paraglide messages — each surface renders exactly one locale instead of inline bilingual strings.
- Native runtime sync and import:
cohub runtime attach is folded into cohub runtime up — native chat sync now installs after a single default-yes consent, up is idempotent (skips already-enabled configs, re-asks after detach), and runtime status reports sync enablement plus per-Harness pending Turns and archives. A new cohub runtime import safely discovers and imports existing Pi/Codex conversations for the bound project while preserving original timestamps and local transcripts. - Sidebar App icons and recency ordering: the Apps list now renders icon + title + slug instead of bare monospace identifiers, adds a reusable
AppIcon with lettered fallback and bounded retry across the expanded list, collapsed flyout, active row, and drag ghost, and serves apps newest-updated-first so an edit floats back to the top. Backed by a new v2_idx_apps_space_updated index (migration 0066) that turns the list into a pure index scan, with realtime snapshots re-sorted to avoid pinning stale positions. - Unified upload limits and quota: every durable upload path (space files, public files, chat/app attachments, avatars, gateway attachments) now shares one set of caps from
@cohub/protocol instead of per-feature constants, and a single Redis-backed fixed-window per-user quota (5k files / 10 GiB per hour) replaces three separate rate limiters (token bucket, public-file windows, chat/avatar gates), while raising gateway single-file to 1 GiB, batch totals to 2 GiB / 2000 files, and inline uploads to 64 MiB. - Cross-replica relay data dials: runner data dials landing on a gateway replica that does not own the pending peer are now forwarded over an in-cluster WebSocket to the pairing pod via a Redis-published cluster hint, eliminating the ~50% 4404/4408 pairing failures across replicas; hint publish failures degrade gracefully to prior behavior.
▸ Fixes (3)
- • Billing access blocks are now handled as terminal, user-facing results across inbound channels: a stable de-duplicated notice with a conversion link is enqueued before the event is acknowledged instead of surfacing as a transport failure, and the billing conversion URL is exposed on
BillingConversionIntent.primaryAction.href for clients without an in-app action. - • CLI diagnostics URL redaction no longer re-encodes healthy URLs — URLs without sensitive query keys stay byte-identical (wrapped-log trailing quotes no longer become
%22) and the matcher no longer swallows quotes or angle brackets. - • Public assets and gateway attachments are now charged against the shared byte quota without double-counting image fallback slots.
- Local Runtime lifecycle:
cohub runtime up now supports supervised foreground/background execution, private local status and stop controls, persistent network recovery, redacted terminal warnings, and explicit Space reuse/new prompts. -n becomes the boolean alias for --new, --name <name> names a new Space, Runtime status reports file-bridge availability, and SDK runtime-status requests accept an AbortSignal. - Native Turn sync: native Pi and Codex conversations now connect to ordinary Cohub Chats with durable per-Turn receipts, automatic whole-Turn forks on conflicting continuations, and verified native archives, reusing the existing realtime progress and continuation APIs. Adds
cohub runtime attach / detach, project-scoped upload consent, capability checks, and native sync diagnostics. - Detached-transport execution: losing the Runtime transport no longer aborts local model or tool work. A detached connection keeps executing, downgrades streaming to best-effort, and replays the durable result over the reconciling reconnect, so a flaky network cannot discard a Turn that already completed locally.
- Managed Runtime control pipe: the CLI bundles sandboxd v2.54.0, the first runner with the private managed Runtime control pipe, so
cohub runtime up reads connection lifecycle events directly from the daemon instead of polling the API every five seconds. Older binaries stay usable through the compatibility readiness/restart path. - Consolidated App development reference: App docs are unified into one bilingual, scenario-first guide with a single API-to-scope authorization map (including previously undocumented
space.completion / streamCompletion), a sample index, and an owner-funded App Action example. The SDK npm package drops the duplicated app-runtime-guide.md and links to the docs site instead. - Supervised Local Runtime:
cohub runtime up now runs foreground or background (-d) under a shared supervisor, with authenticated local IPC for status and down, bounded jittered retries on network and credential failures, crash-restart that never replays model or tool work, redacted terminal warnings, and explicit Space reuse/new prompts (-n is now the boolean alias for --new; use --name to name a Space). - Native Pi/Codex Turn sync: native terminal conversations now flow into ordinary Cohub Chats and Turns through a single local Runtime Daemon. Per-turn durable receipts replay without re-running models or tools, conflicting continuations fork at complete Turn boundaries via the standard session-fork machinery, native archives are verified and reused, and
cohub runtime attach/detach authorize project-scoped uploads. Pi/Codex integrations talk only to the Daemon's private IPC and never hold Cohub credentials. - Optional workspace search: cloud sandboxes bootstrap a checksum-verified
cohub-search binary downloaded asynchronously without blocking the main runtime, with latest.json pointer promotion and signed-release tooling so the feature stays opt-in and non-fatal when unavailable. - Optional, hardened checkpoint mirrors: local checkpoint storage no longer depends on Gitea, so it works with no mirror configured. Mirror credentials are validated at startup, Git pushes authenticate with temporary headers instead of persisted remote credentials, checkpoint metadata merges atomically, and sandbox image pull secrets are configured explicitly.
- Runtime status UX and reliability: web adds an explicit Harness picker and reused model selector, reporting ready/limited/offline/unknown Runtime state with fail-closed local caching. Server-side status reports serialize on the database row and verify the active lease or connection identity first, so stale reports cannot overwrite current state.
▸ Fixes (7)
- • Runtime reconnects now retake their own lease deterministically — the same runtimeId replaces a stale entry instead of waiting out the 40s TTL — and control-plane heartbeats are decoupled from lease I/O, so a slow authorize or Redis renew can no longer starve the client into a timeout.
- • Relay data-channel pairing now outlives the runner's dial timeout, and sandbox dial failures distinguish timeouts from rejections; teardown-time websocket write failures drop from warn to debug.
- • Process-group cleanup treats EPERM on an emptied group as the normal end state on every platform, probes Windows trees through leader liveness, and backs off snapshot polling; a cleanup failure no longer masks an already-finished native result.
- • Receipt-less recovery rebuilds a completed native Turn from native transcript bytes without rewriting native data, and serve-path archive uploads resume through the Space transport again.
- • Preserve the default
gitea-registry sandbox image pull secret when SANDBOX_IMAGE_PULL_SECRET is unset; explicit empty values omit imagePullSecrets and nonempty values override independently of mirror credentials. - • Reordered or delayed sandbox status reports can no longer resurrect a stopped local Runtime connection, and file-bridge authorization is re-verified per connection.
- • Checkpoint Git pushes no longer persist credentials in the remote URL, and command output redacts secrets.
- Native file monitoring: Pinned the bundled
sandboxd to v2.53.1, the first published release with native FSEvents file-monitoring backends and the runtimeId control frame, so cohub runtime up serves a current daemon instead of the stale v1.82.4 build. - Stricter release integrity: Sandbox archive validation now requires every published pin to ship
cohub-sandboxd alongside LICENSE and NOTICE, retiring support for the legacy binary-only archive shape. - Resilient changelog pipeline: Patch releases now merge into their minor's existing entry — newest highlights and fixes lead, earlier notes are preserved and deduplicated, and tags are unioned — instead of overwriting the previous content.
- Clone-safe App bridge: The SDK deep-copies the nested invocation context (including
embedder) before it crosses the App bridge, and the web host posts bridge payloads through a guarded helper that only sends structured-clone-safe data — so a reactive value leaking into a payload can no longer fail postMessage or take down the host's message handler. - Cloudflare App runtime: a new edge Worker injects a lightweight runtime bootstrap into published Apps without altering artifact bytes, with per-environment routing, ETag/conditional caching, and a dedicated Cloudflare deploy workflow; standalone Apps also gain automatic broker authorization and per-deployment origin templates.
- Native harness session projection: durable Session Turns are projected incrementally into Pi and Codex native history — bounded, compaction-aware, and cursor-validated — so a resumed local Runtime continues from the exact conversation instead of replaying it.
- Local Runtime diagnostics: redacted, machine-local JSONL logs with bounded rotation,
cohub runtime logs --json/--follow, sandboxd output capture, and a stable runtimeId with request/trace correlation across Agent, Gateway, API, and Web. - Native sandbox file monitoring: a macOS FSEvents backend with a bounded scanner fallback, unified backend-neutral watcher events, and file-monitoring health surfaced in Runtime status and archive validation.
- Local Runtime memory & status UI: Runtime remembers a Space per canonical directory, account, and environment so repeated
cohub runtime up reuses the same Space, while the composer harness picker and header status become pills, a status chip, and an info popover with fail-closed offline handling.
▸ Fixes (5)
- •
cohub runtime up no longer exhausts file descriptors on macOS, where the outdated v1.82.4 daemon was still being downloaded and run. - • Keep session lists scoped to their Space: a mid-flight Space switch could fetch one Space's sessions under another's cache key and append stale pages; requests now pin their Space and every result apply is guarded.
- • Return search
effectiveTier as camelCase so relevance tiers reach the client; /api/search aliased the column as effective_tier, leaving every response effectiveTier: null and pushing exact matches behind fuzzy local results. - • Fixed
GET /api/apps/:id/public double-wrapping the app record, which made id-addressed public/share links report the app as missing; the identity now stays flat on both the canonical (app) and legacy (work) mounts. - • Made the macOS FSEvents watcher tests deterministic by waiting for watcher quiescence before triggering changes and counting file descriptors via
Readdirnames, removing flaky timeouts and EBADF races.
- App management for builders: Apps are governed by a single
app.manage permission granted to host and builder, so Space builders can create Apps, publish versions, change config, and read stats without host-only Space settings. App detail responses now report the real publisher, which the Cohub bar and authorize dialog credit instead of always showing the Space owner, and deletion is scoped to hosts (any App) or the App's own publisher. - Event-driven Runtime recovery: The per-minute recovery sweep and the message delivery outbox are replaced by Session-scoped reconciliation. The local Runtime reports pending executions in bounded
runtime.recovery batches after connecting, Gateway peer disconnects and uncertain transports enqueue recovery for that Session, and stop confirmation moves into the affected Chat — more than 64 pending Sessions can no longer break a connection. - Completion model registry: Model resolution is extracted into
CompletionModelRegistry, which keeps hidden models resolvable by explicit id while excluding them from implicit defaults and provider fallbacks, fixing hidden models that had become unreachable at runtime. The model picker also reveals a hidden model when it is the current selection. - Runtime status probe policy: Space runtime status now sits behind a freshness/backoff policy — a missing route is retried rarely, denials and transient errors back off, and focus/mount bursts collapse into a single request — removing needless polling without delaying the first screen.
- App authoring contract:
client.auth.authorize({ target, scopes }) with explicit account, Space, or Space-picker targets is now the documented consent path and reports the authoritative target, client.desktop.reportResult() replaces the deprecated client.ui alias, and the deprecated context.space vocabulary plus unused work.json manifests are gone.
▸ Fixes (3)
- • Published HTML assets were cached as immutable, so redeploys served stale pages; HTML now revalidates with a three-day cache while other work assets stay immutable.
- • The
0065 harness_index migration was not idempotent and could fail on re-run; it is now safe to apply repeatedly. - • Deprecated
context.space and client.ui leftovers were swept from example Apps, the SDK README, and the runtime guide, whose init recipe guarded on ctx.space.id (empty in broker mode) and now checks ctx.app.id.
- Local Runtime:
cohub runtime up|status connects a local workspace to a Space and runs turns on local Pi or Codex harnesses chosen per turn — sessions, turns, streaming and resumption stay on the existing Cohub pipeline, with disconnect reconciliation that never replays model or tool work. It replaces the removed cohub sandbox up|status commands (requires Node.js 24+). - Structured App authorization:
client.auth.authorize() returns explicit targets, viewer-controlled fallback, resolution and the authoritative grant, backed by host capability negotiation, incremental consent (scopeMode: "extend") and login recovery resolved before loading Spaces. Legacy auth.request/requestSpace/requestCreateSpace keep their original return shapes with no database migration, and the CLI gains apps authorize --extend. - Unified preview surfaces: file, board, port and app previews now render through one shared
PreviewHeader (dock, mobile and float variants from a single action model), and a single FileContentPreview renderer serves both workspace files and published file Apps; PDF controls reveal on reader activity instead of permanently covering the document. - Bounded runtime batches and prompt purity: queued follow-ups merge into one ordered batch owned by the final turn (its harness, model and authorization; any read-only input makes the whole batch read-only), batch size is bounded at claim and protocol level, and platform content is no longer injected into prompt text — blocks without a native form are dropped while the durable copy stays in the platform.
- Durable archive pipeline: Cloud sessions stop snapshotting native files and rebuild from durable DB history and compaction boundaries, local native sessions stream as content-addressed segments uploaded and restored directly against object storage via presigned URLs, and a durable outbox retries background recovery with segment-cache reuse and quarantine for receipts that can never succeed.
▸ Fixes (5)
- • A confirmed stop now overrides a completed local result, retiring the native projection instead of continuing down the lost-acknowledgement resume path.
- • Preview overflow and control popovers render on a real surface, and the resource label picker anchors to the stable menu trigger instead of an unmounting item that left it invisible.
- • Floated preview nodes stay out of document flow from creation, so an unmeasurable anchor can no longer grow the page and introduce a scrollbar.
- • Byte formatting converges on the shared
$lib/format-bytes helper, fixing the NaN and 500.0 B divergences between file surfaces. - • The shared PDF branch is gated on having a source, restoring the neutral fallback for URL-missing files.
- Generation SDK 0.1.30: Upgraded
@neta-art/generation across API, worker, infra, protocol, and CLI. Suno Chirp Fenix music prompts now map to gpt_description_prompt, so natural-language requests use Suno's automatic songwriting; pass explicit lyrics through the new meta.lyrics field. - Generation SDK 0.1.29: Upgraded
@neta-art/generation across API, worker, infra, protocol, and CLI. Seedance catalog prices now show BytePlus list USD per 1M tokens (seedance-2-0 $2.40–$7.70, seedance-2-0-fast $3.30–$5.60, seedance-2-5 $6.40–$11.70), and seedance-2-5 is added at 480p–1080p with no 4K. - App version history & provenance: Published apps now expose their immutable version history — the public Cohub bar gains a version switcher (
?cohub_v=<n>, getBySlug(…, { version }), listPublicVersions()), and every version deep-links to the session and turn that produced it. Provenance is validated against the app's own space and session identity is gated on session.view, so a private session never leaks; the raw publish-time meta.source is no longer emitted, and viewer-scoped responses are never shared-cached. - Source-label session filtering:
GET /api/me/sessions?source=… now filters by each session's source system label instead of the raw space_sessions.source string, so channel sessions are attributed by the same provider-aware labels a space sidebar shows. The per-origin sourceCounts aggregate was removed, dropping a full account-wide scan from every page fetch; the inbox picker lists the full source vocabulary statically. - Unified
@ mention search: Composer Space mentions reuse the command palette's search and ranking (fuzzy text weighted against viewer tier and recency) instead of maintaining a second scorer, so mentions and the palette can no longer disagree about ordering — and the removed duplicate logic eliminates the per-keystroke scan over cached session lists. - Docked public App bar: The public App page is now a full-height flex column with the Cohub bar (wordmark, space/app identity, views, publisher, version switcher) rendered above the App rather than floating over it, so the embedded App's viewport is exactly what the viewer sees. Version history is fetched after hydration, keeping the SSR critical path to a single request.
- Live generation vs. queued turns: Generation state is now resumed only from
running / abort_requested turns, since a session's newest unfinished turn can be a queued follow-up waiting behind a running one. Queued turns stay in the follow-up queue, and empty pending snapshots are no longer persisted or restored.
▸ Fixes (4)
- • Fixed
?source= filters dropping Feishu/WeChat/Discord/QQ channel sessions and mislabeling them as other, caused by matching the raw source column instead of the assigned labels. - • Fixed the public app version switcher not actually switching: selection is driven by local state, rewrites
?cohub_v, refetches the version, and restores the previous version in the URL on failure. - • Fixed the model picker omitting availability dots for generation (image/video/audio) models — the status feed now marks them in both the collapsed row and the expanded list.
- • Fixed generation sessions created by direct generation missing their source system label, which previously excluded them from source-based filtering.
- Chats inbox source filter: The cross-space inbox now filters by any session source instead of only Web App — a "From" picker built from server-provided
sourceCounts (so it only offers origins the account actually has), multi-select with a filtered-empty state and one-click reset, keeping Web App as the default. GET /api/me/sessions?source=web,feishu takes a comma-separated list of kinds — web also matches legacy null sources, other catches unlabelled rows, and unknown kinds return 400 with the offending keys — and the SDK types them as UserSessionSourceKey (user.listSessions({ source: ["web"] }), SDK 8.16.0). The source vocabulary also drops Telegram and Slack, which no gateway produces. - Seedance 2 reference audio:
@neta-art/generation moves to 0.1.28, and the Seedance 2 / 2.0 Fast declarations accept public-URL reference_audio (alongside an explicit reference_video block) — cohub generate --audio reference_audio=<url> can lip-sync a portrait to a spoken take. Audio is additive to an image or video input: audio-only is rejected and first/last frame roles cannot mix with reference roles. Stale aspect_ratio/fps/watermark parameters are replaced by ratio.
- Unified image viewer: A new shared gesture engine (
image-gesture) and ImageViewer component give every image surface — media lightbox, inline file panel, and app previews — consistent pinch, pan, wheel zoom, and double-click reset, with proper touch handling on mobile. - Session inbox source filter:
GET /api/me/sessions now accepts source=web to isolate human web chats; user.listSessions({ source: "web" }) exposes it in the SDK, and the cross-space inbox defaults to Web App chats with a one-click All toggle, so scheduled prompts and channel bots no longer bury real conversations. - App view counts: App detail responses (
by-slug, :id/public, :id) now expose totalViews, surfaced in the public Cohub bar. The all-time rollup SUM is cached for 60s and computed best-effort, so a slow count never fails an app detail response. - Public file CDN references: Root-relative
/p/{spaceId}/{path} links and assets in markdown are parsed and rewritten to absolute CDN URLs with per-segment decoding and path-traversal rejection, configurable via the new PUBLIC_FILES_ORIGIN. - Workspace assets in chat and previews: Chat timelines and app file previews now resolve workspace-relative images and media through an injected resolver, rendering a quiet placeholder instead of a broken asset when files are unavailable or the viewer has no workspace access.
▸ Fixes (4)
- • Workspace file links such as
tel:..., mailto:..., and cohub:// are no longer misread as line references; scheme detection now runs after line-position extraction, so file.ts:12 still resolves correctly. - • Cached app view totals reject corrupted entries (negatives, floats, unsafe integers) instead of coercing them to zero.
- • Video generation preflight now requires a $1.01 minimum balance, up from $0.60.
- • Removed the redundant "Showing X of Y / Show more" row from the app authorization Space picker, leaving scroll to reveal more.
- Viewer-controlled app authorization: Space-bound consent now resolves to a Space the viewer controls (invocation/embedding Space, last-picked, then first accessible) instead of the app author's home Space, keeping misconfiguration off the viewer's screen. Failed grants return structured error codes (
space_inaccessible, scope_not_held, consent_required, …), developer diagnostics are forwarded to the app author, and a shared @neta-art/cohub/space-picker model is exported so every host renders the same chooser. - Builder session sharing: A new
session.access.manage permission lets builders and hosts share/unshare sessions, decoupled from the host-only member.manage. Space-level access and member management stay host-only, and the permission is not granted to Apps. - Model pricing in the CLI:
cohub models ls and cohub models show now print per-million-token costs and compact multimodal unit prices (e.g. $0.04 / image), expose the raw pricing object in --json, and hide hidden models and providers left with no visible models. - Overlay performance: The host coalesces pointermove hit-testing into a single pass per frame (flushed on release, cancelled on unmount), while companions skip redundant stage-transform writes, derive hit-region rects without a layout read, and redraw sprites only when the pose changes.
- Paged app-authorization Space picker: Each filter tab now windows its full match set on a shared
INITIAL + n * PAGE curve with a rAF gate, making Spaces beyond the first few reachable; the dialog body scrolls on short viewports and the tabs use aria-pressed with per-tab empty-state copy.
▸ Fixes (2)
- • Overlay rect input regions are released as soon as the pointer leaves them, fixing a resting overlay that kept the whole window unclickable; ownership stays frozen while any button is held, including a drag that began on the page underneath.
- • Completed session turns no longer regress to pending on tab resume: a stale
activeTurn from the session-list cache can no longer downgrade a locally terminal generation or hide its persisted answer.
- Space webhooks: Space Hooks can now be triggered over HTTP — a
.cohub/hooks/<name>.yml declaring on.event: webhook is addressed at POST /api/spaces/:id/webhooks/:name, with an optional on.secret credential, a 64 KB JSON body, and per-space rate limiting. Also available via the SDK (space.webhooks), the CLI (cohub spaces webhooks ls|url|trigger), and a Settings listing. - App Action hooks (
uses): Hooks can run a published App Action with uses: user/space/app/action, passing a JSON payload via with, executing as the Space owner over the existing run_command chain instead of shell or prompt steps. - Unified App surface resolution: Workspace opens — the Open button, installed Apps, chat links, and App-to-App navigation — now honor the App's published
meta.presentation.surface, matching cohub desktop open. An explicit surface still wins, and reaching the overlay cap surfaces a notice rather than silently falling back to a window. - App preview keep-alive: Recently used App tabs (default 3) stay mounted in the background across tab switches instead of destroying and rebuilding a single shared iframe, preserving their state; the active App is always retained so the stage never goes empty.
- Shell context for background Apps: New chat background Apps now receive
ctx.shell, letting them read the current location the same way workspace windows and overlays do. - Command palette overview warming: The Recent tab's overview is warmed in the background instead of revalidated on open — viewer activity (send, pin) schedules a debounced, coalesced refresh, the snapshot and its two-minute throttle are shared across tabs over the cache broadcast channel, visiting a Space no longer invalidates the snapshot, and most opens hit no network at all.
- Generation SDK 0.1.27: Upgraded
@neta-art/generation across API, worker, infra, protocol, and CLI, bringing gpt-image-2 output controls — background (auto / opaque / transparent) and output_format (png / jpeg / webp) — with transparent-background examples in the generation docs. - Milk Frog desktop-surface example: The
hud and mascot overlay demos are consolidated into a single milk-frog companion App that follows the current chat, reads the live generation stream, and replies in its curator voice, demonstrating roam/dock input regions and CDN-hosted sprites.
▸ Fixes (3)
- • Fixed space hooks dropping every event for up to 5 minutes: a stale empty hook cache written before the workspace was ready is no longer treated as authoritative —
space.workspace.ready refreshes the cache, negative caching is skipped while the workspace is missing, and the short empty-cache TTL is restored. - • Fixed the App detail view rendering "app not found" when navigating from a higher-version App to a lower-version one, by treating an incoming snapshot from a different App as newer instead of comparing version numbers alone.
- • Session detail active turn:
spaces sessions get and rename responses now include activeTurn like the session list, so clients can tell whether a turn is still running from the single-session response.
- Board edit-history replay: A read-only transaction log API (
GET /spaces/:id/boards/:boardId/transactions, snapshot-consistent newest-first pages with server-computed inverses) plus the SDK's createBoardReplayPlayer() and the CLI's cohub boards transactions (alias history) make any Board's edit history rewindable and playable. The web workspace adds a private read-only replay stage with a scrubber, play/pause, 1–4× speed, step, camera follow, and live tail appends. - Desktop overlay surfaces: Apps can run as a transparent, chrome-free overlay above the Space workspace instead of a preview tab — requested with
cohub desktop open <app> --as overlay or declared at publish time via <meta name="cohub:surface" content="overlay">. Overlays cover the whole window and set their geometry and pointer-event regions through cohub.app.requestConfigure() — regions are hit-tested, so everything an overlay paints stays visible outside its interactive area and fixed panels shrink to their own size. Overlays expose context.invocation.surface, and keep the full App runtime (context, auth, Space APIs, realtime, --call, composer chips, commerce), with up to eight mounted at once. - Board rendering: Entrance motion is now an optional
effects.deal preset (Board-wide default or per-node on-enter) rather than always-on, with reduced-motion preserved. Image textures are shared through an application-level reference-counted pool over Pixi's global Assets cache so multiple Board windows reuse one GPU texture, and the unused Board theme registry was removed in favor of createBoardBackground/updateBoardBackground. - Generation model pricing: Model declarations can carry a display
pricing block (unit plus amount or a min/max range), surfaced through models.listMultimodal() and rendered beside each model in the web model picker. The schema now lives upstream in @neta-art/generation 0.1.26 — @cohub/protocol re-exports the type, the infra declaration loader delegates validation to the SDK parser, and the duplicated local schema and its tests are gone. -
space.create permission: Space creation is now authorized by a user-level permission instead of the caller's principal type — execution tokens work again (cohub spaces create inside a Sandbox), app sessions need an explicit viewer grant, preview sessions are denied, and account sessions are unchanged. - Mobile viewport guard: A fixed-height shell (
height: 100% with interactive-widget=resizes-content) plus a new offset guard snaps the document back after the soft keyboard closes, so the shell no longer shifts up and exposes the root canvas; the chat list also re-pins to the tail when the viewport shrinks. - Gateway resilience: QQ reconnects connect through the well-known WebSocket URL and cache
/gateway/bot with its session_start_limit, backing off on frequency limits instead of hammering GET /gateway and misclassifying the limit as a config error, with channels reporting a rate_limit health reason. The gateway verifies the user access token locally before calling the API, and the sandbox relay exits with an actionable message when a token is rejected instead of retrying forever.
▸ Fixes (6)
- • App republish: page-derived metadata (title, description, icon, image, lang, theme color, surface) is now updated or cleared only when the current value is the one extraction last wrote, so hand-set publisher values are preserved.
- • Overlay paint and input: input regions only gate pointer events, so decorative parts such as bubbles, tooltips and effects render outside the interactive area; rect regions activate on hover while
"all" works on touch. Overlay iframes stay hidden until they paint, and identical requestConfigure payloads are compared structurally and skipped so Apps re-sending geometry every render no longer churn the overlay list. - • App consent: identical in-flight
auth.request() calls merge into one consent dialog and share its answer, instead of replacing it with a spurious denial. - • Board file cards: dropped the redundant
TYPE · size meta line; the title, excerpt and category stripe already identify the file. - • Search: query responses now report
truncated correctly when the result limit is reached. - • Consistent browser chrome: the PWA manifest, inline FOUC script and theme registry now share each theme's exact
--bg-primary color, kept in lockstep by a dedicated test.
- App embedding: Apps can now host other Apps by rendering their public pages in iframes through
cohub.app.embed.attach(frame, { appId, shell, onCloseRequest }); the embedded App sees shell.surface: "embed" and a verified invocation.embedder, and any App can call cohub.app.requestClose() to ask its host to close the surface it runs in. - Viewer-owned Spaces via App consent:
client.auth.requestCreateSpace() lets an App create a Space owned by the viewer in a single consent — the host creates it with the viewer's account token, then grants the requested scopes. The create API now rejects delegated principals, so Apps, previews, and executions can never mint Spaces. - Richer board file cards: titles now come from frontmatter or the first H1 (extension stripped), more cover keys are accepted (including nested
image.src), and excerpts follow the file category, backed by a new pure, renderer-agnostic file-snapshot module split out of file-preview. Cards show a TYPE · size meta line, a category-coloured stripe, and a large type mark when there is no cover or excerpt. - Board entrance motion: nodes added locally or arriving via
board.changed drop onto the board with an id-hashed deal (lift, swing, tilt, easeOutBack) followed by a short landing stroke; bursts over 12 items are treated as rehydration and skipped, and reduced motion falls back to a plain fade. - WebSocket and CLI resilience: WebSocket clients retry stalled handshakes with a configurable
connectTimeoutMs and ignore callbacks from stale sockets; CLI uploads now honor HTTP(S)_PROXY, send Content-Length, and retry transient PUT failures, while nested --help resolves the correct command path.
▸ Fixes (3)
- • Space creation no longer 409s or hangs when provisioning fails: the API returns the already-created Space so callers can close with
{ granted: false, space }, and environment/sandbox setup failures no longer abort the committed Space. - • CLI nested
--help on unknown prefixes now reports an error instead of dumping top-level help. - • WebSocket reconnect no longer processes callbacks from superseded sockets, which could corrupt connection state or drop a reconnection.
- Optional workspace search index: A standalone
cohub-search (Rust/Tantivy) and sandbox fs.search RPC land as optional infrastructure — when a binary is present, the Go sandbox supervises the indexer, forwards filewatch deltas, and stores a trigram candidate index on the system PVC for exact rg verification. This release publishes linux/amd64 binaries but does not bake them into the sandbox image, so search stays off until explicitly enabled. - Live session activity: Session records now carry
activeTurn (turn id, queued/running/abort-requested status, provider, model) end-to-end — API list responses, realtime events, and the IndexedDB session-list cache. The sidebar and per-session generation state stay current as turns progress, and recover correctly across reloads and background refreshes. - Home space default: CLI commands now resolve the target space as
-s, then COHUB_SPACE_ID, then the user's Home space via GET /api/spaces/default. The lookup is memoized per process and cached per login identity (24 h TTL, 0600 file mode), so plain cohub prompt / cohub run work right after login without flags. - Runtime-aware publishing:
cohub apps publish now infers --source from the runtime — workspace inside a sandbox, local otherwise — instead of defaulting to workspace. getCohubContext() treats a COHUB_SPACE_ID alone as a local runtime; only an execution token marks a sandbox, fixing misclassified local runs.
▸ Fixes (2)
- • Sidebar session activity could go stale after background list refreshes and pending-generation indicators could stick across reloads; activity and generation state are now authoritatively reconciled from server-side active-turn data.
- • Search indexing is kept optional and isolated from sandbox provisioning: reconcile no longer creates index directories or falls back the system root to space storage, and directory deletes are applied as snapshot prefix removals.
- Local App Source Publishing:
cohub apps publish --source local now uploads an app source from your machine — a single file or a directory site, up to 1,000 files / 1 GiB — into immutable app_source storage, so sources no longer need to be staged in the Space workspace. The publish worker downloads the bundle, re-validates every object against a manifest (path traversal, duplicates, size caps), and renders the app or site artifact; the SDK mirrors the flow with publicAssets.uploadAppSource(). - SDK Execution Context and Task Wait: The SDK exposes
getCohubContext(), returning a fully typed runtime context — execution source, actor/viewer users, space/session/turn/tool-call IDs, app and action, granted scopes, and model — resolved from the execution token and environment. tasks.wait() now resolves when a run reaches a terminal state by subscribing to realtime task.updated events in the space room with a polling fallback, configurable timeout (up to 24h) and poll interval, and AbortSignal support; run_command payloads gain strict types in @cohub/protocol. - Permission-based Task-run Privacy: Task-run snapshots are kept intact in storage; redaction now follows the requester's space-data permission instead of actor inference. Viewers who can view the space receive the full run, while everyone else gets execution fields (command, cwd, action input, actor/viewer IDs, scopes) and billing figures stripped from payloads, results, and live progress — enforced consistently across task and cronjob run endpoints.
- Persistent Space Workspace Shell: The workspace shell moved from individual route pages into the Space layout, so one mounted instance now spans session, task, checkpoint, cronjob, and app views — route changes swap only data and children instead of remounting the shell. Navigation between views preserves the active workspace window and its long-lived runtimes (boards, apps, previews, chat), and the per-route pages slimmed down to pure route data.
- Faster Streaming Chat Rendering: Streaming markdown is rendered per stable block with a per-block cache, so a new paragraph costs only its own render pass instead of re-sanitizing the whole message; the reveal loop and commit scheduling were rebuilt to avoid per-patch timer churn, no-op renders are skipped, and bottom-follow is throttled to one rAF-aligned pass after the DOM flush — cutting main-thread layout and timer work during long generations.
▸ Fixes (2)
- • App Action task runs no longer lose their input: run_command payloads persist
actionInput, and the run page now renders the action input plus payload/result sections for authorized viewers instead of suppressing them. - • Opening a task run from a session, board, or checkpoint no longer closes live previews or resets the workspace window — space views now share one persistent shell, so boards, apps, and chat keep running during navigation.
- Owner-funded App Actions: Published apps can now expose server-side entrypoints under
.cohub/actions/ and run them via cohub.app.actions.run() in the SDK or cohub apps actions run in the CLI. Cohub downloads the immutable, version-pinned app artifact into the Space sandbox and executes TypeScript/JavaScript (Node 24 with native type stripping) or any executable, passing JSON input on stdin and capturing output into the Task Run. Actions execute with the app owner as actor and platform cost owner, while entitlement checks and credit metering apply to the signed-in viewer — action code can use the SDK or CLI with no credential management. - Verified checkout returns: Payment redirects now carry a server-appended outcome and product key, and a new checkout-confirmation endpoint reconciles each return against the provider's settlement state. The UI confirms success only when an order or subscription is actually paid or active, so forged URLs can no longer claim a purchase and stale redirects resolve to the correct product state.
- Campaign-driven first-purchase discounts: The billing catalog now surfaces viewer-independent promotions — discount percent and end date — so anonymous and ineligible visitors see the incentive on pricing pages, while priced offers are applied server-side only to eligible signed-in users. Campaign parameters are read from provider discount configuration instead of a hard-coded 50%.
- Pricing and purchase UX overhaul: The public pricing page, billing settings, and conversion center were rebuilt around reusable checkout components — product cards, interval toggle, and a live order summary — with plan vs. balance-pack selection, per-month equivalents, first-order offer states with countdowns, promo codes, and an FAQ section.
▸ Fixes (1)
- • App Action runs now report precise failure reasons — timeouts, aborts, and exit codes — via a shared execution-source contract, and task-run privacy metadata is sanitized consistently for viewers.
- MiniMax H3 model support: Upgraded the generation SDK across API, worker, infra, protocol, and CLI to @neta-art/generation 0.1.25, bringing MiniMax H3 model declarations to generation endpoints and pipelines.
- Live Apps on Boards: Apps are now first-class board items — an embedded app renders its real, interactive surface inside a board frame, with the full app runtime shell and navigation context forwarded through the board runtime so it behaves exactly as in its own window. Frames track pan, zoom, rotation, and selection, and can be repositioned by dragging their title bar.
- Drag-and-Drop App Placement: Apps in the sidebar (installed-apps panel and app list) are now drop sources — native HTML5 drag on desktop, pointer-based drag on touch — and boards advertise an "Add App to Board" drop affordance. Releasing spawns an app frame at the drop point, stacks multi-app drops cleanly, and selects the result for immediate arrangement.
- Zoom-aware App Rendering: Embedded apps stay cheap at any zoom — iframe content mounts lazily and only while a frame is on-screen at a readable size, otherwise collapsing to a lightweight title bar, while camera updates are coalesced to a single layout pass per animation frame.
▸ Fixes (3)
- • Opening a file preview now reveals the resource sidebar with its Files / Apps tabs intact instead of collapsing it, and the tabs stay visible even when the panel fades shut.
- • Switching chat into float layout now preserves the current panel width instead of jumping to the stored default.
- • Inaccessible apps (403) no longer show a misleading "Sign in" prompt — both 403 and 404 now report the app as not found.
- Streamlined App commerce checkout: In-app purchase flows bypass the redundant host confirmation dialog and transition straight to checkout, supporting promotion attribution and client-level tracking callbacks.
- Atomic file upload concurrency: Space file uploads now detect and reject concurrent local edits via snapshot validation and file write guards across the API, Agent, and Sandbox daemon, preventing in-progress edits from being silently overwritten.
- Live collaborator presence on Boards: Peers now share their realtime viewport, so collaborators without an active cursor — especially on mobile — appear as "Viewing" markers with off-screen edge hints; cursors carry live gesture labels (Drawing, Moving, Resizing, Editing), and agent/CLI automation shows as chips that transition from active to settled with the running model named. The presence protocol in @cohub/protocol gains a validated, backward-compatible viewport schema with world-coordinate and zoom bounds.
- Session turn browsing and intermediate archives: The CLI's
spaces turns ls --session <sessionId> now lists full turns from one session through the same endpoint as the Web session view, with sequence-cursor pagination (--cursor, --direction older|newer), and a new spaces turns intermediate <sessionId> <turnId> command reads a turn's persisted intermediate messages from its CDN archive (--json returns the raw archive). The SDK mirrors both with session.turns.intermediate.get() and getToolCalls() — resolving message object keys and signed URLs automatically — and exports the archive types; the Web session view was refactored onto this shared SDK client, deleting duplicated fetch, URL, and tool-call extraction logic. - Live shell context for Apps: The App runtime context now exposes
ctx.shell — the current workspace Space, Session, and in-view Turn — and context-change events fire as the user navigates, so installed Apps can react to what is actually open rather than polling. Docs were updated and the capability-lab example demonstrates the new context. - Consolidated General settings: The web Profile and Appearance pages merge into a single General settings page, so identity, theme, and device look-and-read preferences live in one place with a slimmer settings sidebar and fewer nested sections.
▸ Fixes (4)
- • Coalesce concurrent App purchases: Repeated or concurrent purchase requests for the same product are deduplicated and serialized by attempt ID, preventing duplicate orders and race conditions during payment initialization.
- • Aligned session quick action row: Quick action chips inside the chat session panel are now placed directly in
SessionComposer's width container, matching composer margins across compact themes, expanded modes, and mobile viewports. - • PWA system chrome now follows the theme: the browser theme-color is synced to the real shell background — including space-level theme.css overrides — instead of a hardcoded value, with corrected safe-area handling for notched devices and Android gesture navigation.
- • File upload completion now recovers outdated sandbox runtimes before atomic materialization and returns a clear
sandbox_unsupported response when an upgrade is unavailable, instead of retrying a deterministic capability mismatch for 55 seconds.
- App Center: Spaces gain an Apps panel alongside Files (desktop sidebar and mobile drawer) listing installed Apps with enable/disable and uninstall, plus a new first-party Marketplace App for discovery and installation; installed Apps live in a validated
.cohub/apps.json space file with LRU caching and realtime cross-client refresh, and the protocol adds versioned marketplace/installed-app schemas with canonical username/space/app references - Atomic Board batches in the CLI:
cohub boards batch applies a JSON batch of semantic commands in one atomic round-trip with --dry-run, strict --base-version optimistic concurrency, and idempotent --mutation-id retries; the board surface is streamlined end to end — targets resolve by Board ID or .board path, boards connections list/get typed relations, items/effects/compositions gain get-by-ID reads, playback consolidates under boards playback, and examples scaffold workflow, media, and animation boards - Structured Board validation diagnostics: authoring failures now surface diagnostics whose paths map internal node storage back to the authoring JSON (
items.0.props.text), thrown as BoardItemValidationError from the codec, and the Board API unifies on a stable error contract with machine-readable codes, diagnostics arrays, and requestId on server failures - Public SDK Board mutation schema:
BoardSemanticCommandSchema is exported from the SDK (8.6.0) so board mutations can be validated and compiled outside the API, with BoardItemValidationError re-exported from the core board module - Board geometry normalization: The semantic authoring format replaces the opaque
frame with position/size/rotation; draw and arrow geometry is authored in world space, and item frames are now derived automatically from stroke and curve bounds with validation against canonical geometry - Shared Board geometry core: Draw bounds, stroke radii, and arrow curve math moved into
@cohub/protocol as renderer-independent contracts, now consumed by the SDK, CLI, and web editor so exports and live rendering can never drift - Backend-aware Board rendering: Render context now declares its backend (
gpu vs canvas) — live editing keeps the cached-tessellation fast path for draw strokes while headless export uses a Canvas2D fallback, with draw geometry computed once per item instead of per frame - CLI board authoring feedback:
boards create now reports the created board file path (including in JSON output), and boards items list/get show derived x/y/width/height columns for draw and arrow items - Live app sidebar sync: The web workspace refreshes its installed-apps sidebar when the apps document changes through filesystem events, so installs from other clients or the CLI appear without a reload
▸ Fixes (4)
- • Cron schedulers no longer drift from their database records: scheduler keys are always derived from the cron job id, scheduler cleanup retries transient queue failures, and failed creations persist an explicit disabled state instead of leaving orphaned schedulers behind
- • Board CLI example templates were corrected to produce schema-valid v2 boards (defaulted effect fields removed, scale keyframes accept zero), and the unused
draw.handwrite clip kind was dropped from the built-in animation registry - • Marketplace space selection: Opening Marketplace outside a Space now prompts you to choose one instead of failing
- • Marketplace authorization flow: Browsing and installing request scopes that match the action, and permission denials recover via a clear re-authorize prompt instead of wedging the catalog
- Board freehand stroke tessellation: reworked stroke rendering in the SDK to tessellate freehand paths as segment quads with round joins (with per-vertex progress for reveal animations) instead of filling a single outline polygon — strokes that fold back over themselves no longer produce large accidental fills
- Board animation realtime sync: pure animation mutations (effects/compositions, ≤16 KB patch) now ship a server-authored
animationPatch in BoardChangedEvent, letting clients apply animation updates directly from the realtime event instead of refetching board state - Works → App rename: completed the vocabulary migration across product docs (en/zh), SDK/CLI READMEs and examples, and added a new scenario-driven App development guide covering runtime modes, capability recipes, and the permission model
- SDK debugger response capture: response bodies over
maxResponseCaptureBytes (default 256 KB) are skipped during streaming instead of buffered and truncated after the fact, with an explicit bodyCaptureSkipped flag on network entries
▸ Fixes (2)
- • Pasted cohub.live links (and legacy cohub.run/localhost) are now converted to composer mention chips; previously links copied from the primary domain stayed plain text
- • Dropped duplicate board-constants value re-exports in
@cohub/protocol that made import-in-the-middle (OpenTelemetry ESM hook) drop ambiguous exports and break the iitm runtime
- Recoverable agent edits: file edits now tolerate safe line-ending, BOM, and trailing-whitespace differences, validate all replacements against one snapshot, and return match locations plus nearby text when a stale or ambiguous edit fails.
- Reliable cross-platform command output: sandbox processes now drain stdout and stderr concurrently without losing buffered output, report truncation explicitly, and bound inherited descriptors so commands cannot hang after a child exits.
- Non-blocking CLI updates: CLI self-updates run in a detached background worker after the foreground command exits and apply on the next invocation; set
COHUB_CLI_AUTO_UPDATE=0 to disable them. - Robust public App and device handling: public App pages preserve the legacy Work-era response shape while using the current App data model, and composer layout detection distinguishes phones and tablets from touch-enabled desktop browsers.
▸ Fixes (2)
- • Sandbox RPC business errors are no longer misclassified as connection failures when their file content happens to contain connection-like text.
- • Public App pages no longer initialize the surface against an incompatible or incomplete server response, preventing published Apps from failing during SSR.
- App home Space context:
client.context() now exposes the owning Space as app.homeSpace (id and name), and new chat background invocations pass the hosting Space as invocation.spaceId, letting apps and chat backgrounds theme against the Space they actually run in; the top-level context.space field is deprecated in favor of app.homeSpace, and the legacy work projection stays stable as App context gains fields. - Space FS
ctimeMs: file read, stat, and ls results now expose metadata change time as ctimeMs (epoch ms, when available) end-to-end — from the Go sandbox RPC dispatcher (via stat.Ctim) through the API (including the FS CDN cache path) to the SDK and protocol types — and stat additionally reports isFile for regular files.
- Space activity overview: New end-to-end analytics view shipped across the stack — a
/spaces/:id/activity API aggregating hourly token and generation usage, contributor rankings, and app view rankings from hourly stats tables, a web dashboard with usage heatmap, contributor list, and stat strip backed by an IndexedDB cache repository, plus cohub spaces activity in the CLI and space.activity in the SDK. Cost figures are stripped for viewers without space-management access. - Unified space picker: App authorization and the command palette now share one space-picker model (
space-picker-model.ts) with search plus Recent/All/Mine/Pinned filters and recent-Space-aware ordering. The authorize dialog gains a two-step choose-then-review flow instead of a flat radio list. - SDK activity types:
SpaceActivityResponse and related contributor/ranking types are exported from the SDK with typed SpaceActivityApi, giving clients a stable contract for activity data.
▸ Fixes (3)
- • Command palette no longer flashes between unrelated datasets when toggling Recent/All tabs — both tab lists stay alive across switches instead of falling back to localStorage recents while IndexedDB rebuilds.
- • CLI
apps publish/update preflights Space-path --file/--dir targets against the Space workspace and reports explicit, self-explanatory errors instead of a bare 404, with worker fs errors translated to the same wording. - • Space activity API serializes timestamp parameters in raw SQL queries (postgres.js requires serialized values), fixing incorrect time-bound filtering in contributor usage queries.
- Stable command-palette Recent list: the first frame is now the cached server payload folded with local caches (device visits, viewer-authored turns, newly cached spaces/sessions) instead of a pure local synthesis, so the list matches what the refetched overview returns and no longer visibly re-sorts or jumps when fresh data lands.
- Space root is the new chat landing:
/spaces/:id renders the new-session draft directly instead of 307-redirecting to /sessions/new, with the session workspace hoisted into a shared Space layout so it stays mounted across root and session routes — one fewer navigation hop to start chatting, previews preserved during navigations. - Landing editorial pass: dropped stale multiplayer, generation, and live-apps captures; Same room, Live Works, and Any medium sections restyled as centred statements with tightened copy so the whitespace reads as rhythm rather than missing media.
- Route-layer consolidation: legacy
/sessions/new redirect inverted into the canonical Space-root route, unified buildSpaceNewSessionRoute/buildSpaceLandingRoute builders, and mobile session forward/back transitions extended to cover the new landing path — all under fresh unit tests (space-routes, navigation-transition, palette-overview-local).
▸ Fixes (2)
- • Agent bash tool no longer exposes
run_in_background in its parameter schema and description (the hidden parameter remains accepted for compatibility), keeping the tool surface clean for models. - • Space preview window query params are parsed at the Space root load, so window kind/key state survives the removal of the redirect-based landing.
- Command palette instant defaults: Default lists (no query) and the All / Mine / Pinned tabs are back to local derivation, rendering immediately from IndexedDB / space-list caches with no overview snapshot refetch or snapshot-driven re-sort; the space picker Recent tab synthesizes an overview locally from caches when its snapshot is stale, removing first-frame flicker.
- Activity-first Recent ordering: Recent spaces are now ordered strictly by personal activity time (visits + viewer-authored turns + server participation), applied consistently across client palette building, local overview synthesis, and the overview API — stale pinned spaces no longer float above recently used ones.
- Model status pipeline refactor: Model availability now derives from observed traffic with probe fallback, so online-only models appear alongside probed ones; aggregation logic was extracted into a dedicated tested transform module while the Redis-cached
/models-status route got a slimmer v2 payload. - Faster embedded app loads: Server-rendered heads emit a
preconnect hint for cross-origin app frame origins, and iframe URL resolution was unified into a single origin-validated resolver in app-url.
▸ Fixes (2)
- • Command palette: the overview refetch is no longer tied to the search abort controller, which previously cancelled it mid-flight and delayed the correct list by another request cycle.
- • Model selector: latency hover-card values render via proper i18n calls instead of literal message keys, availability dots and hover cards are scoped to cohub-provider models, and the redundant samples row was dropped from the card.
- Personal-relevance command palette: New GET /api/palette/overview endpoint plus tiered search ranking (personal > space member > public-only) that groups turns per session, backed by a memory + localStorage stale-while-revalidate client cache so the default list opens instantly
- Recent tab in space picker & palette: New default tab ordered pinned-first, then by folded personal activity time combining server participation, device-local visits, and viewer-owned session activity; the legacy list remains under "All" with manual tab preference remembered
- Prompt quick actions: Prompt templates can opt into rendering as one-click buttons above the chat composer via quick-action/button-label/order frontmatter; template parsing is deduplicated into @cohub/infra and the prompts Redis cache moves to key version v2
- Unified public asset uploads: Dropped the legacy S3 POST form-upload path entirely — uploads now use presigned PUT exclusively, simplifying SDK transfer logic and removing Safari FormData filename workarounds
▸ Fixes (6)
- • Palette overview failed with PostgreSQL 42601 for users without pinned spaces; SQL fragment fixed and all-empty degraded payloads are no longer cached or rendered
- • Overview rows returned snake_case columns so owner profiles, avatars, timestamps, and pin/relation state silently dropped — output aliased to camelCase
- • Workspace agent catalogs (prompts, skills) now refresh reliably after file changes via a coordinated invalidation flow
- • Sessions starting with direct shell commands now derive proper titles instead of failing title projection
- • App updates no longer lose previously granted authorization scopes
- • Recent tab ordering: re-sort no longer washed out by the global score sort, and row timestamps match the actual ordering signal
- Task Browser stale task cache: Query results now render instantly from a per-identity local cache, refresh silently in the background, and gracefully fall back to cached data when a refresh fails.
- Scope-aware app permissions: The Task Browser requests the minimal grant for the active view — account-level
user.taskrun.list for "Mine", per-Space taskrun.view for a Space or session — and can ask for access to any Space at runtime via auth.requestSpace; SDK 8.2.0 additionally exports AppViewerGrantRecord so apps can type listMyGrants() results. - Session chat simplification: Removed the in-chat generation task tray and its controller (~1,000 lines), consolidating generation-task tracking in the dedicated Task Browser app.
- Quieter auth and gateway logging: Routine auth failures and task-sync summaries moved to debug/info levels, reserving WARN for genuine JWKS and signing-key failures — noticeably less noise in the API and gateway services.
▸ Fixes (1)
- • Gateway task sync could overlap on slow syncs, causing redundant provider churn; an in-flight guard now skips overlapping runs.
- Execution permission alignment: scoped execution tokens now merge their grants with the account's own access instead of replacing it, so permission checks, session filtering, and space filtering return the additive union and agree across all API paths for execution-token requests.
- Unified account middleware:
useUserPrincipal and useAppPublisherPrincipal are consolidated into a single useAccountPrincipal applied across app lifecycle, session, authorization, and viewer-grant routes, giving user and execution principals one consistent auth path with duplicated branches removed.
▸ Fixes (1)
- • Execution-token requests previously resolved scoped-only permissions in session and space filtering while direct permission checks fell through to the user's own access, yielding inconsistent visibility; both paths now use the union of execution scopes and account access.
- Desktop realtime domain: Introduce a dedicated
desktop domain in REALTIME_DOMAINS, distinct from ui, so desktop command events route cleanly to the correct frontend instance. - Compile-time domain assertion: Add a type-level assertion requiring every realtime server event to carry a valid domain, catching misconfigured event domains at build time.
▸ Fixes (1)
- • Realtime desktop command events previously used the
ui domain and could route to the wrong client; they now use the dedicated desktop domain.
- Board semantic authoring protocol: Unified the semantic authoring path across API, SDK, CLI, and Web. Semantic mutations now accept
board.patch, connection.*, effect.*, and composition.* commands alongside item.*, all compiled into one atomic transaction with dryRun server-side validation, idempotent mutation replay via persisted receipts, and row-diffed composition re-apply that no-ops unchanged tracks. - CLI board authoring workflow: Replaced
boards nodes add/patch/remove with boards items create/patch/replace/delete, added boards examples and boards capabilities for templates and schemas, and exposed the previously-hidden tasks and cron-jobs commands. - Realtime
board.changed projection: SDK board realtime events and subscriptions are now board.changed/changed with a semantic changed projection and no wire operations; checkpoints and published Works persist the same semantic Item snapshot as live authoring, with legacy Sequence/Node compatibility removed. - Batched board refreshes: The Web preview controller now coalesces bursts of contiguous remote board events into a single authoritative snapshot reconciliation instead of issuing one read per version, cutting read amplification and render churn during high-volume updates.
▸ Fixes (4)
- • Restore exact session scroll position when reopening a session.
- • Preserve the space theme in settings and deduplicate space theme requests to avoid redundant fetches.
- • Keep voice input enabled during follow-up turns in the session composer.
- • Use QQ gateway intents allowed for the app so disallowed-intent (4014) closes are classified as permission errors and back off correctly.
- Semantic composition protocol: Replace Board animation sequences with atomic compositions built from typed tracks, keyframes, procedural clips, markers, and explicit playback policies. Board mutations now return durable idempotency receipts with replay-safe retries, and the CLI gains composition-first authoring commands (
boards items, boards effects, boards compositions) backed by a new semantic mutation API. - Board protocol refactor: Consolidate Board authoring, composition, codec, capability-registry, and snapshot-upgrade logic into a dedicated
@cohub/protocol package with typed Zod schemas, rename nodes to items across the wire format, and ship a database migration that transparently upgrades legacy sequences, clips, and effects to the new composition model. - Multimodal task browser: Ship a new repository-managed Work (Svelte) for browsing multimodal generation tasks, and expose viewer-authorized
taskrun.view access so published Works can read task runs on the viewer's behalf. - UI preview runtime context: Extend
client.context() for embedded Works with the current viewer identity and invocation details (surface, source, space/session/turn/tool-call IDs), letting previews adapt to who opened them and from where. - Prompt template context variables: Add
{{cohub.session.id}}, {{cohub.space.id}}, and {{cohub.user.uuid}} system variables to prompt templates across API and worker, rendered through a shared renderPromptTemplate utility.
▸ Fixes (2)
- • Preserve animated node rendering in the Board stage by removing the conflicting Pixi texture-upload path
- • Refresh the autoplay policy in live Board previews so animations honor the current reduced-motion setting
- Configurable Board backgrounds: persist solid colors or public image backgrounds with cover, contain, and repeat fitting, position and opacity controls, browser rendering, resilient fallbacks, and consistent headless and image exports
- Semantic camera focus: animate the Board camera toward nodes, node groups, frames, or world-space rectangles with fit, padding, zoom bounds, duration, and easing controls; the editor zoom menu also focuses the current selection when available
- Expanded Board SDK and CLI workflows: add summary and conflict-aware mutation helpers plus semantic commands for nodes, connections, appearance, playback policy, effects, sequences, and camera focus, with Board path resolution, bounded JSON input, reconnect-aware event watching, and atomic exports
- Animation resource preparation: materialize nodes that need live display objects before transforms, filters, and effects run, while caching preparation decisions to preserve far-LOD batching performance
- Space file previews in the CLI:
cohub ui preview file://path opens any Space file in the originating tab, work:// refs make Work targets explicit, and bare targets resolve a Space file before falling back to Work references; the preview protocol and SDK now carry UiFilePreviewTarget with strict relative-path validation - Live Work preview refresh: open Work previews update in place when the Work changes, using version-aware merging and load tokens that discard stale responses; a failed refresh keeps the existing content and shows a non-blocking Retry banner instead of blanking the panel
- Composer create-mode command: typing
:create in the composer switches directly into create mode rather than sending a message - Suspended previews on compact navigation: switching between a Space session and its previews on mobile now suspends preview tabs without disposing runtimes, so Board editors, file viewers, and Work surfaces stay mounted and restore instantly
- Typed billing provider refactor: the hosted billing integration moved off hand-rolled raw payloads and
@ts-nocheck onto the typed Talesofai billing SDK (discounts, customers, purchase facts), restoring real compile-time type checking across the provider
▸ Fixes (2)
- • SDK HttpError status is preserved across the SvelteKit error boundary, so a missing Space returns 404 instead of a generic 500
- • Billing customer ensure no longer overwrites operator-managed status, and checkout reuse is scoped to the requested discount
- Direct generation mode: create-space prompts now accept
mode: "create" with a generation payload, executing multimodal generations as first-class session turns (execution_kind = "direct_generation") with idempotent clientMessageId deduplication, queued-to-terminal status transitions, realtime turn/session events, and generation.request/generation.result messages projected into agent session files; pending generations act as timeline barriers so agent turns stay ordered behind them. - Agent/Create composer: the session composer adds an Agent/Create mode switch and a searchable create-model picker with a persisted per-user model preference; mode and model stay atomic across sends so drafts restore exactly as left.
- Generation cost transparency: message bubbles now show charged, pending, or not-charged cost labels with provider-side cost detail and retry status, and the billing retry worker publishes realtime turn updates when charges land.
- Smarter compaction accounting: image context is now estimated at a flat vision-tile token cost instead of raw base64 length, and compaction effect validation requires a ≥20% reduction (unless force-compacted) so no-op rewrites on image-dominated contexts are skipped.
- Meta test event codes: work promotion delivery now supports optional Meta test event codes for validating pixel integrations before live traffic.
▸ Fixes (4)
- • Compaction context duplication and turn placement for in-turn cuts (#175)
- • Composer mode and model are preserved across sends, restoring create drafts from full turns
- • Direct-generation turns are excluded from steering/abort coordination and finish on terminal turn updates
- • Forked sessions now include visible generation messages with a fork-chain depth guard
- Work promotions: end-to-end promotion tracking for published works — create immutable UTM-parameterized promotion links, attribute landing/ready/paywall events and conversions (registration, checkout) back to promotions, and view hourly analytics; ships with a Meta pixel provider, CLI
works promotions commands, SDK APIs, and a web management panel. - Sandbox optimistic concurrency: filesystem writes are now serialized per path and support versioned writes (size + mtime) that reject stale overwrites with a CONFLICT error, plus a new atomic
fs.edit RPC that applies batched text replacements under the same lock, eliminating lost updates from concurrent tool calls. - Typed board generation references: board nodes now declare typed content capabilities (text, image, video, audio, file, json, collection ports) shared across protocol and web, and the generation composer wires selected board items into generations as typed reference inputs instead of raw URLs.
- Relative markdown asset resolution: markdown surfaces now resolve workspace-relative image/video/audio paths into live assets with bounded concurrency, retries, and timeouts, so workspace documents render media without manual URL fixes.
- Agent tool-call loop guard: the agent runtime detects repeated identical tool-call batches within a turn and steers the model to stop and reassess, preventing runaway tool loops and wasted tokens.
▸ Fixes (2)
- • Accept modern UUID versions (v6–v8) consistently across agent, API, and CLI validation via shared protocol-level identifier checks.
- • Restrict publicly recordable promotion events to safe landing/ready/paywall events, blocking spoofed conversion events from unauthenticated clients.
- Native Board node contract: shared protocol-level schema with machine-readable validation diagnostics, semantic node builders, and capability discovery for SDK and CLI clients, enforced across API board ops
- SDK Board media toolkit: exposed reusable media inference, playback resolution, interaction, and video-thumbnail primitives plus purpose-aware Space file URL resolution; the web board now reuses them, remembers the local viewport, and supports regenerating generation task nodes
- cohub.live domain migration: primary platform domain moved to cohub.live with validated multi-hostname routing across API, web, worker, CLI, SDK, and deploy configs, keeping cohub.run as a legacy secondary domain
- Direct public file uploads: space-scoped, presigned direct uploads with concise SDK and CLI APIs, including sandbox-internal upload paths
- Personal activity analytics: unified personal activity dashboard with time-range queries and model/work rankings, new web settings page, enriched CLI
me output, and sandbox runtime version provenance for accurate attribution
▸ Fixes (4)
- • Collaborative turn state is now synchronized across clients via a reworked session turns cache
- • Public file uploads fixed on OSS and switched to internal uploads inside sandboxes
- • Restored mobile settings navigation and persisted workspace preview width
- • Normalized task media artifacts and aligned activity ranking metrics and generation terminology
- Board audio: Add first-class audio nodes across the Board protocol, SDK codec, renderer, Web editor, and Work publishing, with deterministic waveform previews and support for common audio formats.
- Unified media playback: Play Board file and generation-task audio/video outputs in one inline player with streamable CDN URLs, stable play targets, keyboard controls, visibility/off-screen pausing, URL deduplication, and data-saving video-preview suppression.
- Shared TaskRun projections: Move Board snapshot construction into the SDK, normalize safe remote output URLs without copying raw payloads or results, and add permission-aware batched task lookup via
TasksApi.getMany() and the ids API filter.
▸ Fixes (1)
- • AI usage billing: Fix zero-balance enforcement so paid AI requests require a positive balance, retain the $0.60 video minimum, bypass the gate when billing is disabled, and treat non-finite balances as evaluation errors.
- Board task nodes: Tasks can now be placed directly on Boards with multimodal output previews (images, videos with play badges, deterministic audio waveforms, and text excerpts), live status synchronization, asset preloading, and drag-and-drop from the session task tray.
- In-board media generation: Added a floating generation composer to Boards with model search, reference inputs, generation parameters, draft persistence, provider-specific model validation, and retry-aware background task watchers.
- Headless task rendering: Exported Board documents to standalone raster images with full task-card layout, status indicators, audio waveforms, and media containment without browser dependencies.
- Space task hooks: Space Hooks can now react to
task.updated transitions, exposing task status, changed fields, identifiers, and errors while preventing re-entrant hook loops. - Generation routing: Workers now support the generic Generation SDK through
GENERATION_API_KEY and an optional GENERATION_BASE_URL, enabling configurable provider endpoints. - Landing experience: Rebuilt the marketing home around real product captures with responsive media, lazy video playback, text-rendered CLI sessions, light-theme consistency, and CSS scroll-driven reveals.
- Board connection indexing: Connection indexes now initialize lazily and rebuild only when synchronized relations change, reducing drag-time work on densely connected boards.
▸ Fixes (3)
- • WebSocket recovery: Room subscriptions are reset and restored after reconnects, so realtime room events resume without manual resubscription.
- • CLI timestamps: File and checkpoint listings now display modification times as ISO 8601 values instead of raw epoch floats while preserving machine-readable JSON output.
- • Browser-safe authentication: Web authentication now reads Vite
import.meta.env values, avoiding server-only environment access in browser builds.
- Immutable avatar assets: Profile and space avatars now use unique owner-scoped object keys, stable public URLs, and long-lived immutable cache headers, so replacing an avatar cannot invalidate or overwrite previously served images.
- Format-preserving avatar uploads: Web and CLI workflows accept JPEG, PNG, GIF, and WebP avatars up to 4 MiB, with orientation-aware normalization and fallback handling when image processing fails.
- Unified presigned PUT uploads: The SDK now negotiates presigned PUT uploads for avatars and chat attachments, aligning public-asset uploads with direct object-storage writes.
▸ Fixes (1)
- • Avatar replacement reliability: Removed cache-buster-dependent avatar URLs and fixed upload handling that could leave clients serving stale or broken images after profile or space avatar changes.
- Board connections: Added first-class node-to-node relations with a dedicated protocol and database model, Connect-tool gestures, auto or pinned anchors, routing, direction, labels, clipboard and duplicate support, realtime awareness, exports, checkpoints, and SDK queries and mutations.
- Live board geometry: Split semantic relations from standalone arrows and resolve connection paths from current node frames through a shared SDK geometry layer, with batched rendering and selection and hit-testing support for dense boards.
- Stable workspace syncing: Preserved CodeMirror selections and scroll positions during external file refreshes, ignored acknowledged save echoes, retried files still being prepared, and protected dirty drafts from remote overwrites.
- Instant new-chat adoption: Adopted the accepted first turn immediately, merged and deduplicated realtime events, cached the turn locally, and removed the loading placeholder when content was already available.
- Configurable public domains: Added multi-domain sandbox hostnames and Work content allowlists through environment configuration, with deployment manifests wired end to end for the cohub.live migration.
▸ Fixes (3)
- • Billing usage classification: Counted
minimax.h3VideoGenerations as video usage. - • Production Work links: Corrected the commerce URL fallback to use
cohub.run in production instead of dev.cohub.run. - • Board migration deployment: Fixed board connection migrations by removing the incompatible foreign key constraint used with soft-deleted node relationships.
- Work authorization surfaces: Introduced explicit page, preview, background, and broker authorization contexts; publisher-owned Works can auto-authorize in workspace previews and New Chat backgrounds while public pages and external brokers retain consent flows.
- New Chat Work context: Work backgrounds can now expose compact composer context chips to Session Chat.
- Browser capabilities: New Chat Work frames now support clipboard, fullscreen, and web-share interactions while retaining the background pointer-lock restriction.
- Command provenance: Background command execution now validates and carries source client and model metadata across the API, worker, agent, and completion notifications.
▸ Fixes (1)
- • Composer context cleanup: Active previews now take precedence over background Work context, and hidden New Chat backgrounds no longer leave stale source context attached to the composer.
- CSV table preview:
.csv and text/csv files now render as tables in the file preview with a sticky header, capped row truncation, and empty-cell handling, backed by a new dependency-free parser with delimiter auto-detection, quoted-field and CRLF support - Creator view analytics: published Works now record views per version, hour, and source (Web, CLI, API) into an hourly rollup, exposed via
GET /api/works/:id/stats and a new works.getStats() SDK method, with a Work detail panel showing total, 24h/7d windows, a 30-day trend, and source breakdown for space editors - Redis-buffered view stats: view recording is buffered in Redis and flushed in batches by a lock-protected system-worker job with atomic batch cuts and batched upserts, so counting views never blocks Work access and DB writes are amortized
- Structured auth failure logging: access-token verification failures are logged with machine-readable reason codes (expired, signature, JWKS, claims), making auth debugging faster
- Work analytics CLI:
cohub works stats reports total, 24-hour, 7-day, and 30-day view counts with a per-source breakdown, resolving Works by ID, public URL, mention URI, or username/space/work slug.
▸ Fixes (1)
- • Stale preview save conflict recovery: when a file save hits a 409 that turns out to be stale, the preview now re-fetches the fresh file and auto-recovers — or confirms the save already landed — instead of surfacing a false 'Changed elsewhere' error
- Coordinated token refresh: Access-token resolution is now single-flighted across concurrent requests and same-origin tabs — a Web Locks-backed coordinator with a shared session snapshot ensures a 401 storm triggers exactly one refresh exchange, waiters reuse the winning token, and duplicate sign-in redirects are deduplicated.
- Stale-session guards in the SDK: HttpTransport now stamps 401s with the auth session version, passes an UnauthorizedContext with matchesRejectedToken to onUnauthorized, and adds the getAuthSessionVersion client option plus a matchesUnauthorizedErrorToken export — letting clients prove a rejection is stale and preserve a newer session instead of signing out.
- More readable space danmaku: Danmaku text and lane spacing are enlarged on desktop and mobile for clearer legibility of space activity.
- Simplified CLI Work downloads: Work download results drop redundant content-verification status fields, reporting only the output path, file count, and bytes.
▸ Fixes (2)
- • Concurrent 401s could trigger parallel token refresh exchanges and multiple OAuth redirects, causing sign-in loops — now collapsed into a single refresh and redirect.
- • An outdated 401 could clear a session that had already been refreshed, logging users out mid-session — stale rejections are now ignored via session-generation guards.
- Space creation alignment:
cohub spaces create now supports --checkpoint bootstrap, the SDK exposes typed bootstrap lifecycle metadata (SpaceBootstrapMeta) and requires a space name, and bootstrap sources are validated and sanitized end-to-end — Git credentials are stripped from repo URLs, bootstrap metadata, and task-run responses. - Work launch parameters: query-string and hash parameters on a Work URL are now forwarded to the embedded Work (reserved
cohub_* params excluded), so deep links can drive state inside published Works. - Embedded Work capabilities: interactive Work frames now delegate low-risk, user-activated browser capabilities — pointer lock, clipboard write, fullscreen, and web share — so embedded Works behave like first-class web apps.
- Execution-scoped environment: the agent now loads one immutable space-environment snapshot per execution instead of caching it at session load and sandbox attach, so env changes apply immediately and stale values never leak across runs.
- Explore removal: the Explore feature is removed across the web app, API, SDK, and infra config — including the
client.explore API and its types — reflected in the SDK v5 major version bump.
▸ Fixes (4)
- • Fixed false file preview edit conflicts by comparing file versions at the integer-millisecond precision shared by all filesystem transports, so Node fractional mtimes no longer mismatch Go sandbox protocol values.
- • Fixed the CLI
tasks ls command ignoring the global --space option. - • Fixed voice input not closing when a message is sent, and guarded the composer against stale voice-client callbacks.
- • The CLI local sandbox now names the created space from the folder basename when no name is provided.
- Realtime rooms: Works can now create or join code-scoped rooms through
client.work.realtime and exchange generic JSON events over the existing Gateway WebSocket — with member presence, room-scoped sequencing, publish ACKs, and short-lived admission tickets — so a published Work can run multiplayer state with no backend of its own. - High-frequency sends:
room.send() omits the per-event acknowledgment round trip that caps publish at ~1000/RTT events per second, making it suitable for input frames and other high-rate traffic; failures surface via room.onSendError() instead of rejected promises. - Per-viewer seats: rooms created with
seatPerUser give each viewer at most one seat — a second tab or a rejoin after an unclean disconnect takes over the existing seat — while members carry an opaque userKey so applications can group a viewer's connections without seeing the account id. - Redis-only room infrastructure: rooms are backed by renewable membership leases, a bounded serialized mutation queue, room-wide publish and per-connection presence rate limits, 16 KB payload caps, and an absolute 24-hour lifetime that activity never extends; each Work is limited to 512 active rooms with quota enforced at creation (HTTP 429
ROOM_QUOTA_EXCEEDED).
▸ Fixes (4)
- • Fixed a join race where a member joining between the snapshot read and the local subscription was delivered to neither; the subscription is now established before the snapshot is taken.
- • Fixed an event leak where a connection holding a valid ticket for a full room could briefly enter the routing table and receive room events during the capacity check.
- • Restored the client-side sequence filter so pub/sub can no longer replay an event already reflected in the snapshot, which could re-run custom events or revert presence to a stale value.
- • Unified membership teardown in the Gateway so a swept or superseded connection stops receiving room events and is closed with reason
superseded instead of lingering in the member list.
- Cohub Balance: platform-managed prepaid balance for Space commerce products — a whole-dollar
cohubBalanceUsd provisions a Billing product plus a global USD credit benefit, buyers receive the full balance on purchase, and the amount is configurable end-to-end via the API, SDK, CLI (--cohub-balance-usd), and web product editor - Purchase idempotency: Work commerce purchases now carry a stable
purchaseAttemptId (or Idempotency-Key header) that maps to a Billing order idempotency key, so client retries after timeouts resolve to the original order instead of creating duplicates - Resolve fan-out hardening: the public work-commerce product resolve endpoint now fans out to Billing with a bounded concurrency pool (max 4) and caps on product key count and length, and bound benefit keys are read from authoritative Billing bindings instead of product meta — bounding upstream load and eliminating stale benefit attribution
- New Chat background accessibility: HTML new-chat backgrounds are live documents with focusable controls, so only image/video backgrounds are treated as decorative (
aria-hidden); HTML backgrounds stay in the accessibility tree, with regression tests added to the protocol package
▸ Fixes (3)
- • HTML new-chat backgrounds are no longer hidden from assistive technology while their controls remained keyboard-focusable (WCAG 4.1.2)
- • Bound benefit keys are resolved from Billing bindings instead of product meta, fixing stale benefit attribution in commerce resolve and serialize paths
- • Cohub Balance products are provisioned active-and-private instead of draft — Billing refuses binding a benefit to a draft product — with compensation rollback when provisioning fails
- Sandbox filesystem mutations: File writes, directory creation, deletes, and moves in cloud spaces are now executed inside the sandbox by the agent over its existing connection pool, so sandbox-local watchers observe every change and the direct PVC write path is only used when no sandbox is dialable
- Idempotent file mutations: All filesystem operations and board creation accept a mutationId that maps to a stable, space-scoped BullMQ job id (canonical payload hashing included), so client retries reuse the same job instead of re-applying a mutation; board create derives deterministic board/transaction ids and safely reuses or cleans up orphaned manifests on retry
- Interactive mutation queue: A new sandbox_fs_mutation job type with a 30-second interactive timeout and fail-fast errors, best-effort cancellation of queued jobs on timeout, and automatic redaction of file content from Redis once a job settles
- Save reliability in the web editor: Autosave retries reuse the persisted mutationId so a save interrupted by reload dedupes on the backend instead of issuing a second mutation, and sandbox-inotify echoes during an in-flight save are no longer misread as external edits
▸ Fixes (2)
- • Inline write limits hardened: base64 payloads could bypass the decoded-size cap with whitespace padding and reach Redis — both raw and decoded sizes are now bounded with a 413 response
- • mutationId validation (length and format) is now enforced on dir, delete, and move routes, not just file writes
- Image-to-text fallback: images sent to text-only models are now transparently described by a configured vision model, with descriptions persisted per turn (JSONL sidecar plus DB) so they are reused instead of re-billed, and per-call provider/model/usage/cost recorded on the turn. Configuration lives in a shared
config-runtime/image-to-text module with Redis-cached platform and per-user overrides, wired through API completions, the agent runtime, and the message postprocess worker. - Upload transfer progress: file uploads report real byte-level progress across the composer, space file pane, and profile/space settings, with an accessible indeterminate-to-determinate progress bar and cancellation via
AbortSignal. The SDK gained onProgress and signal on public asset and chat attachment uploads, switching to XHR to expose upload events. - Runtime reliability hardening: agent session JSONL files now recover from truncated trailing entries and missing final newlines by archiving the partial file and fsyncing the repair before reopening; sandbox uploads verify transferred size and surface a typed mismatch error; prompt submission validates the requested provider/model against platform and user model configs; the QQ gateway classifies 4xx config failures to back off for five minutes instead of hot-looping, adds handshake timeouts and tracing spans, and the Go relay client applies the same retry classification.
- LLM image plumbing refactor: remote-image URL marshaling moved out of
stream-completion.ts into a dedicated llm/image-content module shared by the completion and image-to-text paths, and model-config loading was factored into reusable config-runtime/models helpers consumed by API, worker, and agent.
▸ Fixes (4)
- • Image-to-text config cache now refreshes when a checkpoint publishes new config, so model changes take effect without waiting for TTL expiry.
- • Agent context projection no longer deep-clones the whole context, preserving tool function references and leaving the original context unmutated.
- • Upload progress is scoped per attachment instead of shared across a batch, so concurrent uploads no longer overwrite each other's state.
- • Danmaku speed, lane spacing, and visible-item caps retuned for smoother density under bursts.
- Friendly space invitations: invite links now resolve through
/username/space-slug/join/<token> with a shared invite page, plus Redis Lua-backed atomic usage reservation, per-space invite caps, and revocation — exposed end-to-end through the SDK and new cohub spaces invites create/ls/revoke commands - Filesystem cache reconciliation rewrite: the web space-fs repository moved to IndexedDB v14 with a dedicated epoch store, a transactional
idbRunTransaction helper, sequence-gap detection that escalates to full resync, and a refresh coordinator that merges pending batches per lane so concurrent change events no longer thrash the cache or the UI - Mod resources served from checkpoint snapshots: agent now loads mod skills, rules, and append-system prompts from the
latest checkpoint cache instead of the live workspace, so mounted mods and sandboxes always agree on one immutable snapshot; deploy manifests mount CHECKPOINT_CACHE_ROOT read-only - Preview navigation state machine: workspace file preview extracted into a standalone transition-id based navigation module, replacing the ad-hoc clip transition and eliminating stale renders when route, user, and restore sources race
- Project skills load directly from the live workspace, dropping the revision-keyed Redis cache layer for immediate freshness after edits
▸ Fixes (2)
- • Abort signals and other non-plain objects are preserved in completion payloads — image URL restoration no longer walks class instances and strips them
- • Preview panel open and close transitions are now reliable instead of intermittently dropping frames or getting stuck
- Space turn browsing: a new permission-aware
GET /api/spaces/:id/turns endpoint lists turns across all visible Sessions with author, session, and time-boundary filters plus stable cursor pagination, exposed through protocol types, the SDK (SpaceTurnsApi), and a new cohub spaces turns ls command with table and JSON output. The web workspace replays recent turns from other members through the existing danmaku layer, using local cursors, cross-tab lease coordination, deduplication, and live-message priority so catch-up never crowds out real-time activity. - 1 GiB Work publishes: file, HTML, Board, and directory Works now accept up to 1 GiB, up from 5 MB for assets and 100 MB for sites. The publish job was rewritten to stream from disk through S3 multipart uploads (
@aws-sdk/lib-storage) instead of buffering whole files and directories in memory, with HTML metadata parsing bounded to a 5 MB prefix read. - 500 MB gateway attachments: inbound and outbound media limits are consolidated behind a shared
GATEWAY_ATTACHMENT_MAX_BYTES constant and raised to 500 MB. A new temp-media-file module streams responses and base64 payloads to mode-0600 temp files with byte-limit transforms and stream timeouts, replacing the buffer-everything path in the WeChat and Feishu providers. - Indexed turn queries: message lookups across the agent, API snapshot, and turn finalization paths now filter on the indexed
turn_id column instead of the unindexed meta->>'turnId' JSONB expression, removing sequential scans over the full messages table on large deployments. - Model in tool environment: sandbox commands receive
COHUB_MODEL_PROVIDER and COHUB_MODEL_ID, so tools and scripts can adapt to the model driving the current turn.
▸ Fixes (1)
- • Raised the Work publish asset job wait timeout from 15 to 30 minutes so large publishes are no longer cut short.
- Recoverable context compaction: compaction now runs at any LLM round boundary instead of only between turns, records structured metadata (scope, owner turn, trigger reason, token deltas, usage, duration), and rolls the session back to its pre-compaction archive when summarization fails, so a bad compaction no longer poisons the running turn. The web client renders it as an inline notice with expandable summary, token savings, and cost, streamed live through the SDK.
- Indexed turn IDs on messages: session messages persist a dedicated
turn_id column with a partial (turn_id, sequence) index, replacing JSON metadata lookups for turn-scoped reads, with a backfill script that keeps legacy meta.turnId rows readable during migration. - Mod skill provenance: skills mounted from mods carry a structured source (mod space and mount slug) through the config runtime, API, SDK, and CLI, so the slash command menu and
cohub skills show which mod a skill comes from rather than a bare scope. - Shared public identifier rules: username and Space slug validation moved into a single
@cohub/protocol/public-identifiers module with one reserved platform path list, so server and web enforce identical rules and new identities can no longer shadow platform routes. Existing stored values stay readable.
▸ Fixes (3)
- • Compaction stats no longer inflate provider call counts when a summarization retry succeeds, and the turn ordinal shows the compaction's position within its turn instead of the global message sequence.
- • Model status heartbeats are resampled into a fixed 96-bucket window, so the hover chart stays legible regardless of upstream sample density.
- • Feishu bot identity is read from the correct response shape, restoring bot open_id resolution and channel readiness.
- Agent-actionable board viewport context: chat viewport context now carries the viewed board's
boardId instead of raw camera coordinates, so the agent can inspect and render the exact board a user is looking at, while visibleRect and selected nodes still convey focus. ViewportCamera is removed from the protocol and from the BoardViewState/BoardRuntimeViewState report contract. - Trusted identity resolution for user profiles: profile provisioning resolves a Logto identity only from a verified token subject or a previously verified binding, returning a transient profile otherwise. Usernames are never minted or promoted under a guessed binding, and cached handles are only reused when they belong to the same verified identity.
- Owner profiles ensured at resource boundaries: every owned-space path, including Home ensure, now goes through
createOwnedSpace, which establishes the owner's durable profile before the Space row is inserted; principals without a sign-in get an explicit 403 instead of a half-provisioned space.
▸ Fixes (3)
- • Cross-origin board covers now recover through an anonymous image-element loader when Pixi's worker/ImageBitmap path rejects them, keeping the fast path intact and surfacing the underlying error in retry logs.
- • Fallback board textures are disposed alongside the Pixi cache entry on unload, closing a GPU texture leak and the reload race for the same URL.
- • Work public identity resolves the space owner's username for any owner, not only when the acting user happens to be that owner.
- Board playback policy: Boards can persist an autoplay policy in metadata (
sequenceId, delayMs, loop), so opening a Board plays the right sequence with local, per-viewer timing instead of ad-hoc client wiring. Wired end-to-end through the protocol schema, API board ops, SDK, and CLI. - Filesystem event pipeline hardening: The sandbox watcher closes the recursive inotify race by registering each directory before reading its children, recovers from
ErrEventOverflow by re-walking and requesting an authoritative resync, emits deterministically ordered batches, and falls back to resync instead of allocating unbounded change lists. fs.write now reports create/modify disposition and the parent directories it created, and a new fs.mkdir RPC plus capability flags let clients update trees precisely. - Mobile-safe board navigation: Touch devices default to the hand tool, with tap-to-select gated behind a pointer-type check and an 8px slop threshold, so panning a Board on a phone no longer causes accidental edits.
- Public profile pages removed: The
(public)/[username] route, its loaders, and the identity affordances linking into it are gone, cutting roughly 590 lines and simplifying UserIdentity, presence stacks, and the explore/trending surfaces.
▸ Fixes (5)
- • Board preview state, including animation poses and video playback, survives switching between workspace preview tabs.
- • Persistent animation poses no longer drift when a Board re-mounts or replays.
- • Board links sent in chat open in the board preview instead of the generic file view.
- • Work publish ensures the owner has a username before publishing, avoiding broken public URLs.
- • Immersive preview panel chrome and Board text editing alignment polish.
- PDF file preview: continuous scroll viewer with header controls, plus a layout and scroll hot path that no longer scales linearly with page count on long documents
- Board tool styles: per-tool creation defaults (colors, sizes, stroke) now live in the protocol and SDK, shared by web, SDK and CLI, with black/white palette colors and a larger default text size
- Figma-style rotation: rotate selections from corner control zones, backed by shared Board geometry
- Board moves into the SDK: the standalone board package is gone, split into dependency-scoped entries (headless, render) so lightweight consumers no longer pull in PixiJS; note nodes removed and Markdown file-card titles now come from frontmatter
- Live Work versions: typed work.version.published Space realtime events, replayed onto list responses so clients stay in sync without refetching
▸ Fixes (6)
- • Freehand Board strokes render stable rounded outlines through sharp turns and self-intersections
- • Transform controls stay attached to dragged items, and boards reconcile by identity
- • Board file-card covers preserve image proportions; metadata footer removed
- • Themed image backdrops stay behind the transparent canvas
- • Board history stays reachable on small touch screens
- • Previews persist across new chat navigation
- Board image export: renderers, geometry, palette and document codec now share the SDK Board module, so one set of PixiJS card renderers draws a board on screen and in a headless Node render.
cohub boards export <board> -o out.png supports --frame/--items/--rect regions, --scale, --theme, transparent backgrounds and PNG/JPEG/WebP; in the editor Shift+Cmd/Ctrl+E opens an export dialog with live pixel-size readout, download and copy. Source textures are capped at 64 unique previews and output size budgets are now hard guarantees. - Board realtime awareness: cursors, selections, creation gestures, drawing and transforms broadcast through the gateway with a protocol-level awareness schema and SDK subscriptions. Identity renders in a screen-space DOM overlay with avatars and device badges, mobile touch shows as a fading contact ring, and CLI or Agent edits surface as chip markers backed by request provenance stored on
board_transactions.metadata; Agent markers open the originating chat. - Video previews on boards: video cards decode one bounded first frame through the same asset manager as images, sharing reference counting, the LRU cooling pool and viewport-bounded loading, capped at 2 concurrent decode slots. File change events now carry path and metadata, so an overwritten video drops stale keys and adopts its real aspect ratio.
- Theme-driven rendering: card colors resolve from the active board theme instead of hard-coded palettes, so a space's
theme.css applies to both canvas and exports. Node transform controls gained rotation-aware selection geometry and semantic resize capability helpers.
▸ Fixes (7)
- • Switching board tabs kept publishing awareness for the previous board; runtime resources are now keyed on
boardId with sequence numbers owned by a single page-level allocator - • Zoom is faster and no longer drifts under rapid or clamped input
- • File-card content is clipped to node bounds with line-clamped title and excerpt
- • Agent auto-compaction now counts inline base64 images against a provider-aware bound, so sessions stop stalling on repeated 413s; summarize calls also get a retry budget
- • Gateway admits board awareness before queueing it
- • Board tool menus are toggleable and one-shot tools return to select
- • Board chrome stays visible while a board loads
- Board runtime v1: the board domain is rebuilt around boards, nodes, effects, sequences, clips, transactions, operations, checkpoints, and playback state, replacing the document-centric canvas service with inspect/validate/apply transaction APIs plus playback commands and realtime events. Ships end-to-end: bound
BoardClient entities with transaction and playback subscriptions in the SDK, space-scoped boards CLI commands for create/inspect/transaction/playback/watch, a new web animation core with Pixi-based playback, and worker checkpoints aligned to the new model. The former canvas domain is renamed to board across schema, routes, SDK, and web. - Any workspace file on a board: a new
file node accepts every file that is not natively an image or video, binaries and unknown extensions included, deriving its presentation tier from the path rather than storing display state. Snapshots are an mtime-versioned cache over the authoritative workspace file, reads are deduplicated and concurrency-capped, and availability is intentionally never persisted so one client's outage never becomes everyone's. - Order keys minted between neighbours: node ordering moved off array indexes, so deleting the first node of a 1000-node board emits 1 delete instead of 999 patches, and a move re-keys one node via longest-increasing-subsequence selection. With the churn gone, node and operation caps rise to 50k, server-side apply plans node writes in memory and flushes bulk upserts in bounded chunks, and dense boards collapse into one batched layer so per-frame cost tracks the viewport instead of the document.
- Resize transforms content, not just the box: a data-driven
aspectLocked capability keeps text, media, and strokes from distorting while container shapes still honour Shift-to-constrain, images and videos adopt intrinsic pixel size once the texture resolves, and selection outlines hug visible pixels. Live previews run through GPU transforms with authoritative geometry written once on pointer-up, and label rasterization is deferred during the drag. - Touch gestures for boards and notifications: file tree rows can be long-pressed and dragged onto a board on touch and pen, with hit testing via
elementsFromPoint against a zone registry, drawer retraction to expose the board, and targets re-resolved after autoscroll and at release. Turn notifications gain a reusable swipeDismiss action that locks direction after 8px so vertical scrolling still wins.
▸ Fixes (6)
- • Protocol subpath aliases resolve in the web build; SvelteKit's prefix aliasing had rewritten
@cohub/protocol/board-constants into a path under index.ts - • Local undo survives draw gestures and remote rebases, and realtime echoes of your own transactions no longer clear
canUndo - • Board create input is validated against a shared schema before side effects, recreate soft-deletes and revives nodes instead of hard deleting, and only
VERSION_CONFLICT is treated as rebaseable rather than every HTTP 409 - • Mobile navigation drops
?preview= when switching sessions, so full-screen board preview no longer traps you - • Session scroll position is restored after layout settles
- • Workspace previews open reliably, with streamlined space startup previews
- Space-local New Chat backgrounds: New chat boards can load HTML backgrounds from a relative Space file path via authenticated preview sessions.
▸ Fixes (1)
- • Unified workspace route context so sidebar layout prefs and turn notifications stay consistent across space/session targets.
- User-scoped label system for space pinning: Replaced legacy space marks with a unified user-scoped label architecture (
user:pinned), extending space bookmarking across core services, REST APIs, SDK, CLI (spaces pin/unpin), realtime events, and UI components. - Real-time model availability monitoring: Introduced a slim Redis-cached
/api/models/status endpoint aggregating probe telemetry and observed traffic metrics to display operational health dots and 8-hour heartbeat charts in the model selector. - Command palette space picker & tab filtering: Added space tab filters (All, Mine, Pinned) with preference persistence, paginated scroll loading for space selection, and keyboard shortcuts to toggle sidebars.
- Channel help and model management commands: Introduced
/help and /models channel commands to inspect model configurations, catalog options, and session status directly within gateway chat channels.
▸ Fixes (3)
- • Restored migrated user-scoped sidebar labels following schema transition.
- • Prevented file preview URLs from reverting to previously selected tabs when opened.
- • Optimistically update space pin states in command palette items to eliminate toggle latency.
- Model availability in selector: Live per-model status (operational / degraded / outage) with success-rate dots driven by observed traffic first, probe history as fallback, plus hover charts from 8h online heartbeats and 24h history.
- Models status API & protocol: New slim Redis-cached
/models/status route and @cohub/protocol status types that compress the large router-status probe payload into UI-ready fields (rates, latency, heartbeats, history). - Thinking level presentation: Clearer thinking-level UX across the composer, message bubble, and model catalog.
▸ Fixes (2)
- • File preview URL no longer reverts to the previous tab when opening a preview.
- • Hover-card availability tooltip no longer thrashing from a render cycle; history buckets and bar colors aligned with router-status windows.
- Conflict-aware file autosave: File writes carry optional baselines and
mutationIds so concurrent edits surface as 409 conflicts instead of silent overwrites; the web client keeps pending drafts, shows sync status, and recovers safely across File and Canvas previews. - Unified Preview Float mode: File, Canvas, and Port previews share one
PreviewFloatChrome shell with centralized layout coordination, adaptive Chat/Files mutual exclusion, and restore-friendly auto-collapse that does not pollute the layout snapshot. - Space default workspace layout: Spaces can declare
ui.workspace.defaultLayout in .cohub/space.json as a first-entry fallback; explicit ?preview= and existing local prefs always win, and async config never clobbers a layout the user just changed. - Per-prompt thinking level: Optional
thinkingLevel flows through protocol, API, Agent, Worker, Gateway, SDK, CLI, and web—with a model-driven selector, one-shot overrides, and effective level persisted on turn meta for multi-client recovery. - Codex request profiles: Models can opt into a Codex affinity profile that stamps session/thread headers, and forked sessions preserve affinity so prompt caching stays stable across continuations.
▸ Fixes (3)
- • Recover context overflow from Chinese proxy messages and HTTP 413 with force-compact retry; allow turn finalize to recover from a premature interrupted status.
- • Recover from stale dynamic imports; stop file preview crashes and duplicate reads on space switch; re-fit preview width after workspace geometry settles.
- • Align sidebar highlight with the active preview, protect system sidebar labels, and fix Float-mode rail/tabs plus mobile thinking-level UX.
- Unified preview workspace: File, port, and canvas previews now share one responsive shell with consistent tabs, mobile chrome, and pinned Focus / Float controls.
- Canvas media and editing: Native image and video renderers preserve aspect ratio and natural sizing, while continuous creation tools, snapping, resize behavior, and text auto-size make editing more predictable.
- Theme-aware canvas: Shape colors resolve from CSS theme tokens, including per-Space
theme.css, with an expanded color parser and SVG export that preserve custom appearance. - Stable Mermaid interaction: Rendered SVG survives DOM cleanup, and touch gestures stay isolated from the surrounding message timeline.
▸ Fixes (2)
- • Prevent file, port, and canvas preview surfaces from overlapping during navigation.
- • Retry upstream response failures in the Agent runtime.
- tldraw-inspired infinite canvas: Rebuild
.covas around a renderer-independent shape core and editor model (select/hand/text/note/geo/draw/arrow/eraser/frame) with branded coordinates, serial commit queue, multi-tab realtime sync, txId idempotency, and 409 rebase recovery that never drops local work. - Canvas rendering scale-up: Quadtree spatial index, viewport culling, dirty per-item updates, texture LRU, and on-demand Pixi draws so idle canvases stop burning CPU and large boards stay responsive under pan/zoom/drag.
- Urgency-layered agent streaming: Flush text/thinking near frame time (~24ms) while tool progress stays coarser (250ms), with urgent events preempting coarser timers for smoother live replies.
- Reliable Space Hook dispatch: Match definitions in an internal
space_hook.dispatch job and only create user-visible tasks when something matches; skip enqueue entirely when a space has no hooks. - Public Work SEO + SDK canvas conflicts: Publish extracts
lang / theme-color into Work meta for SSR og:locale, theme-color, and JSON-LD; SDK/CLI export CanvasTransactionError for structured canvas conflict recovery.
▸ Fixes (4)
- • Retry transient LLM failures in the agent session runtime.
- • Persist preview focus/float layout across reloads; pin session task tray with better turn-rail clearance.
- • Stop IndexedDB open-timeout warn storms; escape raw HTML in markdown; clip mobile chat selection to the timeline.
- • Stamp streaming previews with server chunk time; resolve Work PWA icons against content URL and skip SVG for og:image.
- Product docs site: Self-hosted
/docs surface with English and Chinese guides, client search, language switch, TOC, copy-markdown, and SEO (canonical, hreflang, JSON-LD, sitemap alternates). - Work page meta on publish + public SSR: Publish extracts title/description/icon/image from HTML head, packs companion assets for single-file Works, and materializes them into work/version meta; public Work and profile pages SSR share/OG tags, Work favicons, short Cache-Control, and soft-fail to client load when the API is unreachable.
- Share branding with
hideCohubBar: Public preview meta follows presentation entitlement — default keeps a light Cohub host signal; hideCohubBar switches title/site_name to minimal Work branding and resolves root-relative media against the published content URL. - Home bootstrap checkpoint: First-time Home spaces fork from
HOME_BOOTSTRAP_CHECKPOINT_ID when set, otherwise still create a blank workspace. - Process cost in chat: Collapsed ProcessCard shows intermediate-only usage cost (not full turn totals), with shared token/cost format helpers.
▸ Fixes (4)
- • WorkSurface no longer SSR-crashes on public Work pages; mount surface only on the client.
- • Public header is sticky/unified across pages with a mobile hamburger menu and overflow fixes.
- • Open
.covas canvas manifests as text (application/json) and recover legacy base64 binary previews. - • Billing catalog scoped to Cohub products.
- Turn-finalize hook filters:
session.turn.finalized hooks can match with sessionIds, ignoreSessionIds, and turn sources (e.g. web_app, cli), keeping trigger filters orthogonal to prompt.sessionId. - Stable hook env for shell scripts: Optional
COHUB_HOOK_* keys are always exported (empty string when absent), so run scripts under set -u stay safe. - Smarter hook definition cache: Empty hook sets use a 30s negative cache TTL to cut readdir IO while recovering quickly from transient PVC misses; task results expose
definitionsCount and cache hit/miss for easier debugging.
▸ Fixes (1)
- • Optional hook context env vars no longer disappear when unbound, avoiding
set -u failures in hook scripts.
- Space Hooks: File-declared automation under
.cohub/hooks/* — trigger run (sandbox shell) or prompt (session) actions on domain events (space.fs.changed, space.workspace.ready, session.turn.finalized, checkpoint.created). - Local event fan-out: API, Worker, Agent, and Gateway enqueue hook tasks directly via BullMQ alongside realtime publish — no HTTP hop or second PubSub consumer.
- Hook execution pipeline: Worker resolves Space owner, caches definitions in Redis (5 min TTL with invalidation on hook file changes), matches with picomatch globs, and reuses existing
run_command / session prompt chains with curated COHUB_HOOK_* env. - Architecture cleanup: Hook envelope lives in
@cohub/protocol; enqueue helper in @cohub/infra/space-hooks to keep package boundaries clean and drop core→infra coupling.
▸ Fixes (2)
- • BullMQ-safe run jobIds; hook failures no longer fail or retry-storm the parent task
- • FS matching always ignores
.cohub/** to prevent self-trigger loops; skip hook enqueue on workspace resync
- Request provenance headers: Introduce
X-Cohub-Source-* (space, session, turn, tool call, via) across protocol, SDK, CLI, and API so HTTP calls carry caller identity into session channels and work/space/generation/checkpoint meta without touching authz. - Cross-space reference indexing: Successful
/api/spaces/:id requests from another space (e.g. cohub -s in a sandbox) now record tool_call edges with route method/path/pattern, requiring turnId and incrementing per hit within a turn. - Reference write modes:
writeReferences supports set (idempotent retries/backfill) and increment (live cross-space accumulation), written in separate statements so modes never corrupt each other. - Backfill performance: Resource-references backfill queries by indexed
session_id plus batched turn ids, with write batching, resume, and progress logging for large DBs.
▸ Fixes (1)
- • Alias
@cohub/protocol/provenance in the web Vite build so provenance imports resolve correctly.
- Resource references graph: Rebuild
resource_references as a directed graph — turn-level content edges, structural edges with denormalized sourceSpaceId/sourceSessionId, agent file-access kinds (read/write/edit/ls/find/grep), batch space authz, and groupBy=target aggregates for file-heat rankings. - Home space bootstrap: Empty accounts now get a blank Home space (
slug=home) via GET /spaces/default, so first entry lands in a real space instead of /spaces/new; POST and ensure share one create/provision path. - Landing narrative: Refresh the public site around @space and Live Work — How it works, differentiators, a more realistic hero demo, and Web/CLI/API/Scheduled as primary surfaces.
- References surface cleanup: Drop redundant participant edges (authorship already lives on turns), query by
turn:<uuid>, and expose the graph model through SDK and CLI.
▸ Fixes (1)
- • Keep dismissed composer viewport-context chips sticky until the active preview source actually changes, so they no longer reappear after every send.
- Default usernames via Logto: New accounts get a username from the email local part (slugified, with wide random suffixes and a UUID fallback), written to Logto first so identity never diverges from the source of truth.
- Account email on profile:
/api/me resolves and returns the signed-in user’s email; Settings → Profile surfaces it next to the account ID. - Session scroll restore: Re-entering a chat re-applies the leave anchor immediately, survives
{#key} remounts and markdown reflow, and keeps restore state isolated per session so scroll no longer lands at the top. - Profile updates for execution tokens: Profile writes fall back to the stored Logto user id when the token has no
sub, so non-browser principals can still update profile.
▸ Fixes (2)
- • Media lightbox: right-click on images opens the browser context menu again (copy image / save), instead of being captured by pan/zoom.
- • Scroll anchor Map writes reassign under
$state.raw so persisted leave positions actually notify consumers.
- Preview mark: Capture port/HTML iframes or image previews into a frozen frame, then crop, annotate, and attach the result to chat through the existing image pipeline.
- Global mark capture: ⌘/Ctrl+Shift+S starts capture from anywhere; mark UI floats as a portal overlay with copy support and lighter cancel feedback.
- Zoomable media lightbox: Open chat attachment images with pinch/trackpad zoom, pan, and keyboard shortcuts for smoother review.
- Public changelog: New
/changelog page with sticky version navigation, shared public header, and agent-powered entry generation from real git diffs—wired into Help, the command palette, and release scripts. - SSR public pages & SEO: Marketing routes render on the server with canonical meta, sitemap, and a session-aware home redirect that avoids marketing flash for returning users.
- Landing redesign: Public homepage rebuilt around a CSS/SVG living-space demo, concept glossary, and idea art — no media placeholders.
- Work publish provenance: Work versions store optional source space/session/turn metadata; CLI auto-fills from sandbox
COHUB_* env on publish paths across API, SDK, and schema. - Models API streaming: Agent and completion LLM calls move from
pi-ai/compat onto the official createModels path, with registry-catalog adapter caching across rounds while auth still resolves live per request. - Sandbox connect wait: Agent dial path waits for resume/report instead of failing tool RPC while a sandbox is recovering or missing an endpoint.
- Stack & open-source prep: TypeScript 7 and Vite 8 with Rolldown; Apache-2.0 licensing, opt-in OTLP tracing (off by default), optional hosted billing, and hardened self-hosting/security docs.
▸ Fixes (13)
- • Stop silent SSO callback redirect loops after a completed login, with safer redirect-path sanitization.
- • Keep warm label-tree cache on first paint by not counting IndexedDB open races toward cache wipe recovery.
- • Reduce sidebar fork-row flicker and improve media lightbox trackpad zoom and backdrop close.
- • Default system worker shutdown timeout to 5 minutes so long-running system jobs are not cut off early.
- • Stop still-streaming sessions from painting into empty
/new chat drafts while preserving mid-send adopt handoff - • Archive intermediate rounds without stale tool previews; restore waiting footer between rounds and session scroll when the leave anchor is the assistant
- • Harden sidebar cache so chats never stick on Loading after label items return
- • Stabilize Safari @ mention caret reactivity; make markdown file preview resilient to lazy import failures
- • Harden preview-mark capture against Chrome Element Capture hangs and gesture-gated start failures
- • Clear residual stream state so queued follow-up turns never paint the previous generation
- • Open empty/config dotfiles like
.npmrc as text instead of binary octet-stream; soft-fail inline previews with Retry/Download - • Remove the stray Last save row from the new checkpoint page
- • Align left/right sidebar item spacing and sessions header density, including mobile brand surface
- Cross-space New chat: Starting a chat from
/sessions now stays on the sessions inbox (/sessions/new?space=…) with a command-palette space picker, draft chrome, and in-place space switching instead of jumping into a space workspace. - Sessions shell architecture: Shared
sessions/+layout keeps the inbox page mounted across list, draft, and detail routes so the left list no longer remounts or jumps; draft targets use newChatSpaceId so they never fight global sidebar layout prefs. - Settings exit navigation: Entering settings records the prior page, tab switches use
replaceState, and leave uses history.back() (or the last space) so return is one step and no longer drops you on the public home.
▸ Fixes (2)
- • Long turn navigator previews truncate to ~180 chars with a full-text tooltip instead of overflowing the rail and bottom sheet.
- • Settings deep links (billing, referrals, channels) preserve the
from return path across sub-routes.
- Skill slash commands: Type
/skill:name in the composer to expand platform, mod, user, and project skills on send — cataloged in the slash menu with Redis-backed discovery, plus skills.list in the SDK and CLI. - Workspace motion shell: Desktop left/right panels and preview columns clip open and closed with shared motion tokens; mobile
/sessions opens chats with an IM-style view transition, while resize and reduced-motion stay instant. - File tree drag-move: Drag files and folders onto targets in the tree to
fs.move, with hardened panel hide/collapse so previews stay mounted and interactions remain reliable. - Sessions continuity: Desktop
/sessions restores the last chat (or newest fallback), re-entry keeps scroll position, and session bootstrap skips double-fetches and no-op turn/presence refreshes.
▸ Fixes (5)
- • Turn rail markers map by document position and chat chrome height so the minimap aligns with the timeline
- • Label as picker anchors near its trigger on desktop and uses a safe-area bottom sheet on mobile
- • Files column collapsed state persists across reloads; first-press header collapse is reliable
- • HTML preview no longer loops createPreviewSession; file preview opens before a URL race can close it
- • Sessions composer pins to the bottom; Focus my chats (⌘⇧U) works while typing
- Main/Files workspace columns: Space shell splits into independent Main and Files columns with deep-linkable
?preview= state, unified file/canvas/port tabs, and bi-directional URL sync so chat switches keep the open preview. - Shared session-chat module: Full chat host, generation, scroll, and realtime lifecycle extracted into
features/session-chat for Space and Sessions—refcounted space rooms, multi-host-safe generation leases, and a slimmer workspace page. - Richer turn navigator: Turn index exposes intent and author profiles; the rail and bottom sheet show compact labels, timestamps, image placeholders, and multi-author names without heavier payloads.
- Unlimited owned spaces: Free-plan owned-space quota and entitlement gate removed so any account can create unlimited spaces.
- Account-scoped work viewers:
user.space.list / user.session.list / user.usage.read still gate on the work grant, but data loads via asAccountIdentity so cross-space lists no longer collapse to the Work space.
▸ Fixes (4)
- • Sanitize auth tokens in SDK transport and web client so Safari no longer throws on Authorization headers with CR/LF from corrupted storage.
- • Hardened dual-host generation: lease under-release no-ops, stale stream
patchSeq drops, mid-send draft persistence, and space-switch composer reset. - • Stopped session-chat effect loops freezing mobile UI; drawer pointer-events only while open or dragging.
- • Portaled floating menus escape workspace stacking/overflow; preview Focus/Float menu no longer mis-dismisses or anchors at top-left.
- Durable chat attachments: Upload chat files once to public durable storage without a session, then materialize them into the sandbox on demand — with hardened gateway handling and a 1GB size limit aligned to space uploads.
- Generation model discounts: Apply plan-based multipliers from entitlement metadata at request time, snapshot pricing for billing retries, support free (zero-multiplier) generations, and surface official vs effective cost in SDK/CLI results.
- Internal OSS materialize path: When pulling durable public URLs into the sandbox, rewrite known CDN/OSS origins to the internal endpoint for faster in-cluster downloads.
- Composer draft control: Keep large composer drafts editable and controllable instead of locking up the input.
▸ Fixes (2)
- • Channel
/model overrides no longer fail due to comparing platform sender IDs to Cohub user UUIDs. - • Generation pricing and discount fields are redacted from collaborator task views so plan tier cannot leak.
- Sessions inbox: cross-space
/sessions list with split list+conversation on desktop and fast branch-query listing on the API - Public profiles: guest-facing
/:username pages with discoverable spaces and works, plus identity links from presence, chat, and explore - Viewport context: active file, canvas, or port chips in the composer send structured view metadata with each agent prompt
- Referral rewards: end-to-end referral program across API, billing, SDK/CLI, and settings UI
- System queue postprocess: session message postprocessing moved to a dedicated system worker queue for more reliable redrive
▸ Fixes (2)
- • Recover sandboxes on unreachable endpoints, close idle_check loops on recover, and unify idle reaper scheduling
- • Preserve session inbox order and unblock message postprocess redrive
- Raw space completions: New
POST /spaces/:id/completions API for full-control LLM calls (messages, system prompt file, thinking level) with JSON or SSE streaming, model catalog resolution, billing (generation.llm.raw), and S3 completion archives — exposed via SDK (completion / streamCompletion) and CLI (cohub completion). - File Diff mode: File workspace and inline panels gain a Source / Preview / Diff segmented control that loads pending changes since last save, with shared diff rendering reused by checkpoint diffs.
- Post-save checkpoint handoff: Watching a
save_checkpoint task complete now auto-opens the new checkpoint detail; opening an already-finished historical task stays on the task page.
▸ Fixes (2)
- • Indent nested label items under child labels in the sidebar
- • Passthrough remote image URLs in raw completions so Cohub never downloads image bytes for the model
- Multimodal generation billing: Successful image, video, and music generations now charge the shared credit balance with idempotent
recordUsage, post-success billing metadata, and a dedicated generation.billing_retry worker path for failed charges. - Generation usage stats & trending: Hourly
generation_usage_stats_hourly rollups mirror LLM token stats and power separate Generation leaderboards (spaces, users, models) beside the existing token-ranked boards. - User-scoped cache isolation: IndexedDB partitions prefer stable user identity over guest, wait for auth hydration, and still network-fetch when cache identity is unavailable so cold starts never leak or permanently miss private data.
▸ Fixes (2)
- • Command palette keeps Run Command / New Space local, reserved, and always visible instead of waiting on IndexedDB or remote search.
- • Sidebar channel labels resolve from space bindings with provider icons instead of falling back to short ids.
- Checkpoint diffs: Parent and pending workspace diffs are precomputed on save and available across API, SDK, CLI, and Web—including a lazy pending preview that avoids hammering NFS.
- Session Channel labels: Channel-origin sessions are auto-labeled under a system Channel tree (aligned with User labels) and shown in the sidebar Chats view, with a backfill script for existing data.
- Generation metadata: Generation results now store provider
request_id and usage cost end-to-end via the upgraded generation SDK.
▸ Fixes (3)
- • Recover from IndexedDB version mismatches on stale clients with a one-shot reload and hard-refresh guidance
- • Prevent session timeline
each_key_duplicate crashes after generation turn handoff - • Make sidebar label “Load more” full-width clickable
- Channel runtime health: Gateway now writes structured ready/error/degraded status to Redis, exposes it on channel list APIs, and shows status pills with error summaries in Settings and Space Settings—new providers get baseline lifecycle health automatically.
- Unified billing 402s: Billing-gated failures and soft debt warnings share a flat
{ code, message, billing } payload across API, SDK, WebSocket, and CLI, with shared serializers and helpers for blocked-access detection. - Label sidebar hydration: Label items return fully hydrated sessions and forks in one response (with view filtering and shared fork redaction), eliminating N+1 avatar gaps on Load more and deferring All-chats network load until expanded.
- Context overflow recovery: Agents force-compact and retry when providers report context overflow, scaling reserve tokens to the model window and aborting empty retries when compaction cannot free enough room.
- Theme semantic tokens: Chat, sidebar, and app backgrounds gain semantic theme tokens, with Neta Studio chrome and slate canvas polish across light/dark variants.
▸ Fixes (4)
- • Contain Mermaid syntax errors in-place so invalid diagrams no longer leak huge SVGs and break page layout
- • Preview text files served via CDN URLs with MIME-aware inline UTF-8 hydration
- • Handle TOCTOU races in space-fs inline reads with typed errors and richer telemetry
- • Tier checkpoint-fs blob cache TTLs by size so large fulltext blobs stop dominating Redis
- QQ channel provider: full gateway adapter and channel setup flow for QQ Open Platform bots, including streaming replies and media send/receive.
- Native channel media: outbound replies on Feishu, WeChat, and QQ deliver images and files as native attachments; inbound media from QQ, Discord, Feishu, and WeChat is ingested into durable Cohub assets with shared SSRF-safe fetch.
- Mention triggers: space channel settings can require @mentions in Discord guild channels and Feishu groups before the agent responds.
- Owned-space entitlement: free plans are limited to one owned space via
space.owned.unlimited, with unified feature_not_entitled 402 gates that open the shared upgrade UI. - Space settings UX: settings use continuous scroll with hash-linked sections, scroll-spy nav, and copyable mod space IDs.
▸ Fixes (5)
- • Validate cross-space tool
space_id values as UUIDs before query routing - • Encode label item cursor comparisons correctly so pagination stays stable
- • Normalize QQ inbound attachment CDN URLs and map QQ/Telegram session label sources
- • Return API unauthorized responses without throwing through the global error path
- • Handle missing Logto user cleanly on profile update
- Sandbox compute specs: Choose Standard, Boost, or Ultra CPU/memory tiers per space, with plan-gated entitlements, live Kubernetes pod resize (no restart when possible), and full API/CLI/SDK support.
- Space settings redesign: Two-pane section navigation, settings-row layout, skeleton loading, and a focused sandbox spec picker for clearer, faster configuration.
- Work PWA polish: Dedicated Work icons, maskable assets, and richer web manifest metadata so published Works install more cleanly as progressive apps.
- Work runtime guide: New agent-oriented SDK docs that make Work runtime capabilities easier to discover and integrate.
- Search & Discord reliability: Faster global search via materialized CTEs and trigram operators; Discord outbound splits preserve fenced code blocks, suppress unintended mentions, and send typing indicators.
▸ Fixes (3)
- • Correct Kubernetes pod resize subresource usage when applying sandbox specs
- • Gate higher sandbox specs by billing benefit keys and fall back cleanly when resize cannot apply immediately
- • Limit turn search to substring matching to avoid noisy similarity hits
- Cross-space turn notifications: When an agent turn finishes in any space, you get a compact in-app toast with space identity, status, duration, step count, and a preview of your prompt — open the turn in the current or a new tab, or dismiss it.
- Desktop & PWA alerts: Optional browser notifications fire when the tab is in the background, with a gentle permission prompt and service-worker click handling that focuses or navigates to the finished turn reliably.
- User-scoped realtime notify channel: Agent and API emit a new
session.turn.notify event to the user's personal room on turn finalize, and the SDK exposes onUserEvent so clients can subscribe without binding to a single space. - Smart suppress & multi-tab presence: Notifications are suppressed when you are already focused on that session; BroadcastChannel + localStorage presence keeps other tabs quiet if one tab is actively viewing it.
▸ Fixes (1)
- • Browser notification clicks now correctly focus an existing window or open the target session URL via the PWA service worker.
- Multi-preview tabs: Open and switch between multiple file, canvas, and port previews in the space workspace, with a redesigned tab bar and unified panel chrome.
- Neta Studio theme: New appearance theme aligned with the canvas skin, available in settings with matching editor and Mermaid styling.
- Preview chrome polish: Consistent headers across file, canvas, and port panels, type icons in tabs, and cleaner close/focus controls.
▸ Fixes (2)
- • Keep preview lazy imports stable so panel remounts do not reload modules unnecessarily.
- • Limit tool input detail height to avoid oversized overflow in chat tool views.
- Channel model selection: Bind a preferred model per channel from space settings and creation flows, with catalog-aware validation across platform and user model configs.
- Private HTML previews: Serve private HTML files from a dedicated preview origin using short-lived signed preview sessions, keeping previews isolated without leaking main-app credentials.
- Work bridge core in SDK: Extract framework-agnostic
createWorkBridgeCore (plus grant cache) into @neta-art/cohub so external hosts can reuse token minting, authorization, and purchase flows without reimplementing the bridge. - Faster global search: Optimize search queries with new indexes so Command Palette results stay snappy at scale.
▸ Fixes (3)
- • Keep the sidebar usable when the label cache fails to load.
- • Re-authorize viewer scopes when work runtime tokens refresh.
- • Prevent the preview router from intercepting internal API routes.
- Standalone work auth broker: Works running outside the Cohub iframe can authorize via a popup broker (
/work-auth) with origin allowlisting, one-shot postMessage handshake, and restricted-token persistence across reloads. - Work runtime transport layer: SDK
WorkRuntime is transport-agnostic — ParentBridgeTransport for iframe embeds and PopupBrokerTransport for standalone deploys, with auto-detection from CohubClientOptions.work. - Bridge host extraction: WorkSurface bridge logic, authorize, and purchase dialogs are split into reusable
createWorkBridgeHost + dialog components shared by embed and broker flows. - Authorize consent UX: Work authorize dialog groups requested scopes into plain-language operations, shows work/author context, usage notes, and 14-day validity.
- YAML block scalars in skills: Agent frontmatter parsing now supports folded (
>) and literal (|) multi-line skill descriptions instead of truncating them.
▸ Fixes (2)
- • Sidebar shows user labels after source labels.
- • Skill descriptions using multi-line YAML frontmatter no longer collapse to
> or | in system prompts.
- Sidebar source labels: Chats are organized under system Source labels (Web App, CLI, scheduled tasks, etc.) with user labels first, activity-ordered system lists, and an All Chats fallback—replacing the separate Chats section.
- Unified access states: Space and session permission failures share one AccessState model and AccessStateView for not-found, forbidden, sign-in-required, limited, and generic errors—including route-level error pages.
- Per-round auto-compaction: Context compaction now runs before each LLM round via transformContext, so long agent turns can compact mid-turn with correct sequence bookkeeping instead of only pre-turn.
- Streaming tool UX: Tool partial results stream as append patches; live tool output and collapsed input panels auto-follow the tail while you scroll freely when needed.
- Background task steering: Completed background bash tasks re-enter the agent loop with steer intent so the session continues from the task result.
▸ Fixes (2)
- • Stabilize streaming markdown spacing so live-to-stable promotion no longer jumps paragraphs.
- • Keep label item caches and ordering fresh as sessions update.
- Local space filesystem over relay RPC: Web FS for local spaces now goes through sandbox relay — new
fs.tree capability, richer fs.read/fs.stat/fs.write metadata, exclusive create, and live fs.changed events without an attached agent. - Dedicated FS API deployment: Split space FS and checkpoint FS traffic onto
cohub-fs-api with higher memory and dedicated routing, isolating file I/O from the core API. - Sandbox node pool scheduling: Sandbox pods can target dedicated node pools via configurable nodeSelector and tolerations.
- Realtime context compaction: Agents publish the compacted system message over the WebSocket stream so clients see compaction notices immediately.
- Work asset CDN base URL: Configurable CDN origin for work asset delivery.
▸ Fixes (4)
- • Composer stays responsive with large drafts
- • Map virtual
/workspace to the fenced root in local sandboxes so FS/process RPCs no longer ACCESS_DENIED - • Route local cross-space queries through the sandbox
- • Serialize gateway inbound binding events to avoid races
- Local sandbox: run a space against a local dial-out
sandboxd via gateway relay, with cohub sandbox up/status, path fencing, and managed cross-platform binary download. - Resource references index: rebuildable turn-granular graph of forks, mentions, tool calls, mods, and participants, with live double-writes plus query/aggregate APIs, SDK, and CLI.
- Sandbox architecture: extract
@cohub/sandbox-client and a reusable Go session layer; add immutable cloud|local provider on space sandboxes and short-circuit cloud lifecycle for local. - Work home screen shortcuts: public work URLs install as home screen shortcuts via a dedicated webmanifest.
▸ Fixes (1)
- • Hydrate sidebar spaces from the local cache on mount so reopening the drawer does not flash an empty space selector.
- Home screen shortcuts: Add installable web app shortcuts for Spaces and Works so they can be launched directly from the device home screen.
- Incremental label patching: Introduce partial resource label updates across API, SDK, CLI, and web, avoiding full label rewrites for faster, safer edits.
- Async work asset publishing: Move Work asset publishing off the API path onto a system worker queue for more reliable, scalable publish throughput.
- Generation stream runtime: Refactor session generation realtime handling and improve streaming scroll-follow so live turns feel smoother and more stable.
- Agent image normalization: Normalize and guard image inputs before LLM calls to reduce oversized payloads and prevent empty bash output from being treated as images.
▸ Fixes (4)
- • Resolve each_key_duplicate crash in running-turn process cards
- • Show current user avatar correctly in shared session sidebar rows
- • Isolate turn execution auth and reset residual per-turn state on error paths to prevent cross-turn leakage
- • Show source badges in label sessions
- Session auto-compaction: Long agent sessions now compact automatically before a turn when context crosses the threshold — LLM summary, session-file archive/rewrite, agent-state rebuild, and a durable compact turn in the DB (with expandable UI divider).
- Compaction-aware session files: SessionManager archives full pre-compaction history, rewrites a trimmed root, and can recover branch forks from the archive chain when entries were compacted away.
- Session append I/O: Persistent WriteStream for session.jsonl appends, with the fd flushed and released between turns instead of held across idle periods.
- Streaming text animation: Replaced per-word tokenization with a lightweight stable/tail split for smoother, cheaper stream rendering.
▸ Fixes (2)
- • Bill LLM usage for every persisted assistant message (including intermediate tool rounds), not only the final reply.
- • Compaction edge cases: skip empty summarize, omit inaccurate tokensAfter in the UI, fix turnId/sequence resolution, and restore from archive if DB persistence fails.
- Session participant labels: Sessions automatically get system
User/<id> labels for participants, with protected system assignments, fork inheritance, and a backfill path. - Streaming markdown split: Chat streaming now renders stable and live tail regions separately, cutting re-parse/re-render CPU while the reply is still growing.
- User profile cache: Web client caches user profiles in IndexedDB and stabilizes label/profile hydration so avatars and names stay consistent under realtime updates.
- Agent session reliability: Session JSONL is streamed more efficiently, user-message indexes avoid redundant work, and handles settle (persist/flush/signature) before lock release.
▸ Fixes (4)
- • Inherit parent session labels when forking
- • Hydrate turn author profiles on realtime
session.turn.created events - • Stabilize trending list keys to avoid row remount flicker
- • Allow non-dashed user ids in session participant labels
- Work credit commerce: Sell credit packs and consume balances with a closed loop —
cohub_credit benefits, GET entitlements (features + balance), and idempotent POST credits/consume across billing, API, SDK, CLI, and the benefit editor. - Space danmaku: Other users' messages float across the workspace from realtime turn events; pills are clickable to open the source session, with throttle, concurrency caps, reduced-motion support, and a presence-popover toggle.
- Markdown line links: File links can target specific lines and open the editor or preview at that location while preserving workspace paths.
- Draft session model memory: Manually chosen models for new sessions persist in localStorage and restore only when still present in the live catalog.
▸ Fixes (1)
- • SDK debug HAR/log export redacts tokens, JWTs, API keys, and secret-bearing query params in request bodies, WebSocket frames, and console output — not only headers.
- Work Commerce: sell one-time products from published Works with feature unlocks, credit benefits, host-owned checkout, and runtime APIs across server, SDK, CLI, and web.
- Space commerce management: redesign the commerce settings UI and CLI surface for products, benefits, bindings, and orders, gated by dedicated permissions and Max/Internal entitlement.
- Workspace file links: open relative and workspace file links from markdown previews and chat content directly in the file workspace.
- Chat process reliability: harden intermediate-step loading with explicit sync/retry states and graceful degradation when session-turns cache reads or writes fail.
▸ Fixes (2)
- • Handle uninitialized space commerce state without hard failures in settings and API flows.
- • Polish presence popover behavior and keep agent user-context config paths out of prompts.
- Work visibility: Works support
public vs space access — space-scoped pages, sessions, and authorize flows require space.view, with matching publish/edit UI and API fields. - Versioned publishing: Publishing is split from metadata updates —
POST /works/:id/versions snapshots content, status is only published/disabled (draft removed), and public content always serves the current version. - Actor-aware agent runtime: Sessions bind to the acting user for model registry, LiteLLM tracking, and system prompt context; user skills load only for the space owner, with live
configureRuntimeIdentity swaps. - Presence popover: The space presence stack opens a polished online list (desktop popover / mobile sheet) with richer activity labels across chats, files, works, tasks, and more.
- Immutable asset caching: Public OSS uploads (chat attachments, turn objects, work assets) set
Cache-Control: public, max-age=31536000, immutable for long-lived CDN hits.
▸ Fixes (2)
- • Keep work edit/publish action bars sticky and visible while scrolling the detail form.
- • CLI generation commands accept media role inputs for multimodal generation workflows.
- Space presence: Live who-is-online indicator in the workspace header, backed by presence snapshots,
presence.update websocket events, and SDK space.presence / updatePresence APIs with optional activity meta. - Room-based realtime routing: Gateway and SDK now subscribe to explicit
space: / user: rooms instead of fan-out by audience lists, with retain/release room subscriptions and cleaner event delivery. - Default space resolution: New
GET /api/spaces/default (and SDK spaces.getDefault()) returns the user's home space or most recently active accessible space. - Gateway outbound reliability: Per-node outbound streams with channel rebind migration, delivery retries, and safer websocket client error handling.
▸ Fixes (2)
- • Mobile chat shell scrolling
- • Realtime task events incorrectly routed off user rooms
- Mod prompt templates: Enabled space mods contribute
.agents/prompts into the shared prompt catalog (API + worker), with a new mod scope and revision-aware Redis caching. - Cohub Ask UI:
cohub-ask / ask-user-question fenced blocks render as interactive question cards; option clicks (single or multi-select) insert into the composer without stealing focus. - Enriched Works API:
works.get now returns publicUrl, content, owner, and space alongside the work record; SDK types and CLI surface public/content URLs. - Hide Cohub bar: Work detail settings let Pro/Max owners toggle public-page Cohub footer visibility via presentation meta.
- Streaming snapshot merge: Intermediate stream recovery uses stable turn-scoped message IDs and a shared merge/dedupe path so live and persisted assistants stay consistent.
▸ Fixes (3)
- • Deduped recovered streaming intermediate messages that could appear twice after reconnect or snapshot enrichment.
- • Running process details load correctly after refresh when live intermediate state is empty.
- • Background bash task user messages use distinct styling and labeling in chat.
- CLI profile & space slugs: Update public usernames and Space slugs from the CLI (
profile update, spaces update) for public Work URLs. - CLI space context:
spaces get can use the configured target Space and surfaces slug in output.
▸ Fixes (2)
- • Streaming process panel no longer collapses incorrectly after refresh during an active turn.
- • Prompt template loading tolerates a missing or empty platform templates directory.
- Immersive preview: Expand workspace previews into a full immersive mode with tighter chrome and optional chat overlay visibility.
- CLI
run command: Execute one-off shell commands in a Space workspace (cohub -s <id> run -- …), with sync wait or async queue. - Composer draft persistence: Keep unsent chat drafts per session so reloads and session switches no longer drop in-progress input.
- Generation stream recovery: Stronger snapshot merge and resume paths across agent, SDK, and web so reconnects restore intermediate turns cleanly.
- Mermaid interaction: Pan/zoom diagrams more reliably, including pinch-to-zoom on touch devices.
▸ Fixes (3)
- • Restore correct streaming turn rendering after generation recovery.
- • Fix mobile member role selection in space settings.
- • Keep the session task tray visible on compact shells; fall back failed image attachments to files.
- Activity-sorted spaces: Spaces now track
lastActivityAt (message and session activity) and list by recent use across API, sidebar, command palette, and mentions—backed by a dedicated index. - Hide Cohub bar on Works: Pro and Max can hide the public work footer bar via publish UI, CLI (
--hide-cohub-bar / --show-cohub-bar), and a billing entitlement check. - Silent work re-authorization: Returning viewers reuse cached grants so consent prompts are skipped for previously approved scopes (local cache with periodic re-consent).
- Sidebar Works first: Works sits above Saves in the space sidebar for faster access to published surfaces.
▸ Fixes (1)
- • Pricing page only shows public plans, so private catalog entries stay hidden.
- Account-level Works scopes: Works can request
user.space.list, user.session.list, and user.usage.read so viewers grant access to their own spaces, sessions, and usage—not just the host space. - Me sessions & usage APIs: New
/api/me/sessions and /api/me/usage endpoints, with SDK (user.listSessions, user.getUsage) and CLI (cohub me sessions, cohub me usage) for cross-space account data. - User-level permission model: Permissions can now be account-scoped rather than space-bound; Work runtimes strip sensitive space fields when listing a viewer's spaces.
- Shared usage aggregation: Space and account usage endpoints share one aggregation path for hourly buckets and cost summaries.
▸ Fixes (2)
- • Enforce a -$1 hard negative billing limit instead of -$1M.
- • Resolve user-level permission checks before space-scoped auth so account scopes are not incorrectly denied.
- Landing redesign: Refined home visual identity, public pages locked to dark theme, and routes split into layout groups for faster first-screen loads.
- Prompt-scoped env:
CreateSpacePromptInput and scheduled send payloads accept per-turn env; CLI prompt / spaces send gain repeatable --env KEY=value with duplicate-key detection. - WeChat channel login:
ChannelsApi.startWeChatLogin() and waitWeChatLogin() with QR data URL and optional verify-code flow (alreadyConnected / needVerifyCode). - Checkpoint lineage:
CheckpointRecord adds optional rootCheckpointId and saveVersion, and makes meta optional for clearer fork tracing.
- Redesigned landing page: New marketing home with product story, demo placeholders, and full SEO/Open Graph meta; public pages lock to dark theme before paint to avoid theme flash.
- Public vs app route groups: Split SvelteKit routes into
(public) and (app) layouts so the authenticated shell no longer wraps marketing pages, improving landing first paint and isolation. - Prompt-scoped env vars: Per-turn environment variables flow through API, SDK, agent sandbox bash, and scheduled tasks, with CLI
--env KEY=value on prompt and spaces send (system keys reserved, validated limits).
- WeChat channel media: inbound images and files now flow through gateway attachment plan/complete APIs into public assets and space uploads, with outbound image delivery over WeChat CDN.
- WeChat login hardening: QR connect supports verification codes, reuses existing bot tokens, and improves already-connected and session lifecycle handling.
- Checkpoint stats: saves record richer file change metrics (added, modified, deleted, renamed, copied, size) and surface them in the checkpoint detail view.
- Gateway attachment pipeline: new internal
/attachments/plan and /attachments/complete routes with safe path checks, size limits, and sandbox upload completion.
▸ Fixes (2)
- • Channel delete now returns clearer business errors and more reliable UI feedback.
- • WeChat inbound messages correctly include image references.
- WeChat channels: Connect WeChat bots via QR login, with a full gateway provider for inbound/outbound messaging and polished binding UI.
- Session switch stability: Key chat timelines by session, defer scroll restore until layout settles, and avoid empty frames when switching sessions.
- Generation snapshot cache: Persist in-flight session generation state in IndexedDB so refresh and multi-tab recovery stay reliable.
- Theme & space switcher polish: Smoother theme circle transitions and visible sync status in the space switcher.
▸ Fixes (4)
- • Recover stale worker checkpoint git locks
- • Sanitize Postgres JSON content that could break message storage
- • Fix markdown first-frame fallback and session source label overlap
- • Harden gateway channel recovery and WeChat submit flow
- Space workspace modularization: Split the monolithic SpaceWorkspacePage into domain modules and controllers (session, files, cronjobs, task runs, works, checkpoints, canvas/port preview) with clearer state boundaries and route isolation.
- Theme switch animation: Appearance settings now use the View Transitions API for a circular reveal when changing themes, with reduced-motion support.
- Space switcher freshness: Command palette space ranking blends recent visits with session activity and can force-refresh the space list so the switcher stays current.
▸ Fixes (2)
- • Preserve session scroll position before workspace navigation.
- • Harden workspace route/controller resets so detail views and realtime state stay consistent across route switches.
- CDN chat images: Chat attachments now upload to public asset storage and travel as stable CDN URL references instead of inline base64, across web, CLI (
--image), SDK, API, and agent. - One-shot public asset uploads: SDK and CLI gain
upload / uploadChatImageAttachment helpers so clients no longer hand-roll presign + form POSTs for avatars and chat images. - Faster space boot cache: Workspace startup assets—space styles and prompt templates—are cached in localStorage and restored immediately while silent refresh keeps them current.
- Agent public-asset image loader: The agent can resolve chat image URL blocks from object storage, so multimodal turns work with CDN-backed attachments end to end.
▸ Fixes (2)
- • Keep chat attachment public URLs canonical (no cache-buster query) so agent and clients resolve the same object keys.
- • Harden usage cost aggregation so non-finite values cannot corrupt totals, and derive missing
cost.total from component costs.
- Work version publishing: Works now keep an immutable version history—republish creates a new snapshot, and the management UI, API, and SDK expose current/latest version plus version lists.
- Works CLI: Manage Works from the terminal with
cohub works (ls, get, resolve, publish, update, versions, rm), including force-publish and scope controls. - Space-scoped layout prefs: Sidebar width and collapse state are stored per space (with legacy global fallback) so each workspace keeps its own layout.
- Avatar pipeline: Shared
UserAvatar with OSS-resized delivery, plus upload encoding that falls back from WebP to JPEG when needed.
▸ Fixes (2)
- • Stabilize session scroll position when reconciling chat tails and preserve unchanged turn object refs to reduce UI jump.
- • Harden Work runtime parent-origin detection and clone Work/viewer permission scopes at the context bridge.
- Mermaid diagrams: Render Mermaid flowcharts in chat markdown with zoom controls and SVG export
- Checkpoint pagination: Cursor-based listing across API, SDK, and CLI for large checkpoint histories
- Session cache rewrite: Indexed session list/detail repositories with bounded memory without truncating lists
- Sidebar modularization: Split resource rows into dedicated components with tighter label layout and file preview actions
- Work surfaces: Extract WorkSurface and support native work backgrounds
▸ Fixes (3)
- • Stabilize session sidebar row updates and snapshot merge order
- • Restore space file download actions and fix dotfile previews
- • Make turn rail markers clickable; fix work runtime context race
- Invite role upgrades: accepting a space invite can promote an existing lower-role member (for example guest to builder) without demoting, with shared role-rank helpers in core permissions.
- Filesystem observability: space and checkpoint FS APIs emit staged OpenTelemetry spans and timed stage logs for cache, git, CDN, and IO hotspots, with tunable detail via env flags.
- ESM OpenTelemetry bootstrap: API process starts with an import hook so OTEL ESM instrumentation loads correctly, and span filtering now runs at the processor layer.
- Distributed tracing CORS: allow and expose Tracestate, Baggage, and Sentry-Trace so browser clients can propagate full trace context.
▸ Fixes (1)
- • Invite accept no longer returns 409 for existing members when the invite would upgrade their role.
- New chat space profile: Fresh chats surface the space identity—name, description, creator, members, 7-day usage, and a live sandbox status pulse—with local cache for snappy loads and mobile expand/collapse.
- Delegated prompt auth: Work-session and delegated prompt scopes now flow end-to-end through agent turns, execution grants, background bash, and scheduled tasks so tools run with least-privilege permissions.
- Permission scope normalization: Shared helpers clean and compare scopes across API, work sessions, and execution grants, including scoped execution principals for agent-driven access checks.
- Trending polish: Model rankings resolve human-readable catalog names, and costs render as proper USD.
▸ Fixes (2)
- • Sidebar chat rename now cancels on outside click.
- • Usage cost display restores the currency prefix.
- Works lifecycle: Manage Works end-to-end from the sidebar and space detail pages — get, update, disable, and delete with asset cleanup, plus matching SDK/API support.
- Space home is chat: Opening a space lands on new chat; profile and usage live under Space Settings for a cleaner workspace entry.
- Billing catalog cache: Static catalog data is cached in Redis (server) and a shared client store so pricing and plan UI load faster with fewer round-trips.
- Work viewer permissions: Works can grant
generation.create, file.view, and taskrun.view scopes so shared public surfaces can generate and inspect task output.
▸ Fixes (1)
- • Work delete returns to the space landing route instead of a stale detail page.
- Custom new chat backgrounds: Spaces can declare background payloads in
.cohub/space.json, with web rendering, external sandbox support, faster loading, and a stable composer layout. - Batch user profiles API: New
/api/users/profiles/batch endpoint and SDK client fetch up to 100 public profiles in one request, with cache-friendly responses. - Session model continuity: Accepted turns store provider/model, and the composer restores the draft or latest turn model so model choice survives session create and send.
- Partial agent search results: Find and grep return partial matches when output limits are hit instead of failing the tool call.
▸ Fixes (1)
- • Checkpoint config publish failures are recorded as structured
publishWarnings on progress and checkpoint meta instead of only logging.
- Streaming find & grep: Find and grep tools now stream throttled partial results while searches run, so long scans stay visible instead of blocking until completion.
- Process argv exec: Sandbox
process.start supports direct argv mode (no shell) via a new processStartArgv capability, with size limits, diagnostics, and tracing. - Agent-owned remote search: When argv exec is available, remote find/grep run through
fd/rg with agent-owned argv, limits, abort, and formatting; legacy fs.find/fs.grep remains for older sandboxes.
- Reliable turn abort: Agent aborts now cancel all active tool executions and in-flight sandbox processes for a turn, not just the top-level controller.
- Sandbox process abort plumbing: Bash/grep register per-process abort handles, capture RPC context for
process.abort, and honor turn-level AbortSignals end-to-end. - Sandbox RPC reordering hardening: WebSocket client resolves pending ops even when
rpc.event / rpc.completed arrive before acceptance mapping, preventing lost results and stuck tools. - Preserved aborted tool output: Tool results keep full
rawOutput so abort/timeout paths still surface real command output in sessions and run-command progress.
▸ Fixes (2)
- • Billing user-menu spacing tightened for denser rail/menu layout.
- • Run-command jobs abort cleanly with a proper terminated result instead of failing as infrastructure errors.
- Pricing & conversion: New global pricing page with monthly/yearly plans, sidebar plan entry, and a reusable billing usage gate that surfaces upgrade/conversion when limits are hit.
- Unified Activity ledger: Billing settings merge usage records and open overages into a single Activity feed with net balance, covering grants, consumes, refunds, and adjustments.
- Billing package: Extract
@cohub/billing as a shared package with usage-gate, conversion helpers, and REST-aligned billing APIs used by API and worker. - Sandbox lifecycle: Hardened hibernation and teardown cleanup so public network and infra state are torn down more reliably.
- Trending & workspace polish: Cache trending API responses, recommend the base mod in space settings, and speed up session task tray media previews.
▸ Fixes (2)
- • Align trending table header and row columns across breakpoints.
- • Guard usage cost against non-finite values and fix pricing balance display.
- Agent-owned session persistence: moved turn and message persistence into the agent service with clearer boundaries, assistant-message normalization, and intermediate turn object storage.
- Lazy new chat sessions: draft chats open instantly via a dedicated new-session route, with quieter session creation and transitions that match the empty chat view.
- Scheduled job management: SDK and CLI now support cron job detail, patch updates, and paginated run history, with more reliable rescheduling and richer task/cron detail UI.
- Faster workspace loads: stale-while-revalidate space bootstrap, optimized session task loading, and finer Vite chunk splitting for markdown, Shiki, and CodeMirror to cut first-load weight and flicker.
- Task and generation UX: clearer progress, generation output, checkpoint detail, and session task tray—especially on mobile.
▸ Fixes (5)
- • Persist intermediate agent turn objects correctly and isolate retry turns after claim failures
- • Refresh cronjob sidebar after updates and keep open-sidebar working in new tabs
- • Unblock space page loads when IndexedDB cache hangs; always revalidate session list against remote
- • Restore mobile composer focus after send and allow read-only file downloads
- • Harden worker config publish permissions and tighten BullMQ job retention
- Public Works: publish HTML files, static directories, or sandbox ports from a space to shareable
/{username}/{space}/w/{slug} pages, with asset storage, scoped work sessions, and viewer grants end-to-end (API, SDK, web). - Work publishing UI: sidebar Works list, publish dialog (including directory entry), and a dedicated share page with faster loading and hardened slug/path validation.
- Filtered workspace visibility: agents honor
file.view vs file.view.filtered, applying gitignore-aware path filtering across read, ls, find, and grep. - Double-click session rename: rename sessions inline from the sidebar with click/double-click disambiguation.
▸ Fixes (2)
- • Correct agent file-view filtering so filtered actors cannot probe ignored or unauthorized paths.
- • Stabilize work share page loading when space metadata is incomplete.
- Model costs: Selector shows per-million input, output, and cache pricing so you can pick models with cost in mind.
- Hidden models: Models can be marked hidden for pickers while remaining available at runtime; exact-ID search still finds them.
- Faster space bootstrap: Creating a space becomes ready after enqueueing the initial checkpoint instead of waiting on the full save, and blank workspaces tolerate existing files.
- Simpler workspace layout: Removed the custom space-layout system in favor of a lighter preview focus mode with reliable panel resizing.
- Shared model catalog: Web loads models through one store with indexed display-name resolution across chat, process cards, and session activity.
▸ Fixes (3)
- • Checkpoint create returns 409 when a save is already in progress instead of enqueueing a duplicate.
- • Turn rail markers hover and jump correctly without fighting the scroll track.
- • Waiting status and sidebar activity show friendly model names instead of raw IDs.
- Checkpoint file browsing: Inspect any checkpoint as a read-only file tree in the space sidebar, with matching API routes, SDK (
checkpoints(id).files), and CLI (ls-tree / show). Backed by a git-based checkpoint FS layer with Redis caching and presigned asset delivery. - Suno music generation: Add
suno_music for songs, lyrics, sound effects, and related tasks; generation payloads rename metadata → meta across protocol, API, worker, SDK, and CLI. - Media markdown previews: Standalone audio and video links/images in markdown render as native players with captions.
- Workspace polish: Turn navigator hover/connector behavior is tighter and more stable; selecting a model returns focus to the composer.
▸ Fixes (4)
- • Unknown binary MIME types (e.g.
.zip) are no longer treated as UTF-8 text, preventing file corruption. - • Billing credit grant lists filter non-displayable grants and surface
availableNow / unavailableReasons. - • Checkpoint storage mounts and cache path layout no longer double-prefix subpaths.
- • File tree loading no longer sticks in a stale loading state when switching sources.
- Realtime canvas sync: Postgres-backed canvas documents with semantic op transactions over WebSocket, optimistic concurrency, undo/redo, and a durable client-side pending queue for resilient multiplayer editing.
- Space layout & style: Per-space workspace layout customization and custom style injection so spaces can control chrome, preview panes, and visual identity.
- Label-scoped search: Command palette, API, SDK, and CLI can filter by labels—including empty-query label browsing—for faster navigation across labeled resources.
- Session navigation refresh: Replaces split-mode session chrome with a streamlined turn navigator panel and simplified workspace routing.
▸ Fixes (2)
- • Block guest access to prompts that should require authentication.
- • Keep turn navigator hover and focus state in sync; stabilize preview layout menu state and loading feedback.
- Background bash tasks: Agents can run long-lived shell work asynchronously, with a session task tray, realtime status, and IndexedDB-backed task-run caching across web, SDK, and CLI.
- Follow-up prompt queue: Queue, reorder, and manage pending follow-ups while a turn is running, with hardened actions and stable composer UX across API, web, and CLI.
- LLM waiting lifecycle: Expose generation waiting state end-to-end—agent runtime, realtime protocol, SDK stream helpers, and in-session runtime status UI.
- Billing account management: Expand billing APIs and the settings UI for richer account, plan, and payment workflows.
- Agent turn dispatch rewrite: Round-based batch claiming, session-level wakeups, and agent-issued execution grants replace turn-id jobs and shared signing keys.
▸ Fixes (4)
- • Stop interrupting batched turns and skip locked wakeup retries so drain/follow-up dispatch stays reliable.
- • Handle async bash sandbox RPC errors without dropping background command runs.
- • Persist interrupted assistant snapshots and order follow-up actions by operation time.
- • Fix sidebar session navigation, active label highlighting, and composer Enter-to-submit behavior.
- Voice input: Speak into the session composer with Volc ASR—tap the mic to toggle, get partial transcripts live, and auto language detection end to end (gateway
/asr/ws, SDK VoiceApi / VoiceInputClient, web UI). - SDK voice client: New voice-input export with idle WebSocket reuse, audio buffering until ASR starts, and configurable connection timeouts for snappier repeated captures.
- Mobile workspace: Split mode is disabled on mobile and forced into chat-only view for a cleaner small-screen layout.
- IndexedDB resilience: Cache layer recovers from closed/reconnecting connections instead of failing mid-read/write.
▸ Fixes (3)
- • Split-mode turn routing no longer follows stale turns or races new-session navigation; per-session turn-list scroll is preserved.
- • Session composer auto-expands when content needs more room.
- • Realtime protocol accepts the label domain for live label updates.
- Session split mode: View a session side-by-side with a secondary panel, with view preferences persisted per session.
- Realtime label sync: Resource label assign/unassign events propagate over websockets so sidebar and pickers stay in sync across clients.
- Resource label cache: IndexedDB + in-memory LRU layer for resource labels enables cache-first sidebar hydration and fresher label pickers without blocking loads.
- Sidebar label actions: Inline label controls, clearer drag affordances, and improved collapsed flyout alignment for faster labeling workflows.
▸ Fixes (3)
- • Stabilize session split mode when switching sessions or view modes.
- • Keep label drag previews visible and avoid layout jumps on drag start.
- • Disable ligatures in code text for more reliable monospaced rendering.
- Path-based labels: Labels are addressable by hierarchical refs (
Bug, Area/Frontend) end-to-end—shared @cohub/core/labels resolution, ref-oriented API routes, SDK helpers, and full CLI spaces labels management. - Label-aware prompts & sessions: Attach labels when creating sessions or sending prompts (API, worker, CLI
--label); new sessions also get automatic system source labels (channel, scheduled task, API, etc.). - Drag-to-label workspace: Drag sessions and files onto sidebar labels to assign or move them, with item remove actions and a polished label sidebar/picker UX.
- Label create-on-assign: Attach flows can resolve missing label paths and create them when the caller has manage permission, reducing setup friction across clients.
▸ Fixes (3)
- • Prevent iOS focus zoom on inputs by tightening the mobile font-size selector.
- • Relax composer image compression so larger uploads stay usable.
- • CLI multi-output generations fall back to a directory when
--output is a single file path.
- Hierarchical labels: Replaces space pins with nested labels, assignments for sessions/checkpoints/files, resource label pickers, and a full labels API across server, SDK, and web—existing pins migrate to a Pinned label.
- Billing plans & redemption: Adds plan/addon catalog, checkout and subscribe flows, redemption codes, usage records, open overages, and a richer balance details experience.
- Faster sidebar labels: Caches label trees and items in IndexedDB, persists expansion state, and keeps the chat sidebar denser with smoother fork-session sync.
- Workspace polish: Drag generation task references into chats, refined port-ready toasts, softer unread indicators, and markdown code ligatures disabled for clearer diffs.
▸ Fixes (3)
- • Validate checkpoint space id before use
- • Tighten label uniqueness and depth constraints
- • Declare native TypeScript preview in protocol package
- Read-only prompts: prompts can run with
accessMode: read_only, limiting the agent to inspect-only tools (read, ls, find, grep); CLI exposes this via --read-only. - Session owners and participants: sessions now track an owner
userUuid plus participant metadata, with hydrated profiles surfaced in the sidebar. - Live session activity sidebar: chat rows show participant avatars, compact activity times, and live phase previews (thinking, tools, streaming, failed, unread).
- Job failure diagnostics: BullMQ jobs record structured, redacted failure progress/logs across agent, sandbox, and worker task paths for faster ops debugging.
▸ Fixes (6)
- • Render cached file tree immediately, then refresh in the background
- • Preserve spaces in inline markdown code spans
- • Keep a shared/open session visible even without session-list access
- • Complete sandbox uploads with presigned download URLs instead of public object URLs
- • Refuse bootstrap/restore into a non-empty workspace instead of wiping it
- • Filter queue worker counts by Redis DB to avoid cross-env inflation
- Checkpoint v2: New save/restore pipeline with nested git repos, object storage for large assets, and space forking from any checkpoint (web + worker).
- Explore wall: Native Explore view with a public-safe DTO (avatars, saves, pins, access labels) instead of leaking full space records.
- Structured observability: Shared JSON logger with secret redaction and trace/request correlation, wired for SLS collection across services.
- Process termination: Sandbox/agent now propagate bash exit reasons (
exited / timed_out / aborted) through tool results and run-command progress. - Optimistic chat turns: Tighter clientMessageId reconciliation and dedupe so sent messages stay stable across HTTP, WebSocket, and local cache.
▸ Fixes (3)
- • Preserve dirty workspace files and nested paths when restoring checkpoints; skip system dirs and respect storage subpath mounts.
- • Return 400 for invalid space config instead of failing later in provisioning.
- • Create task runs before enqueue so checkpoint saves and prompts cannot drop work on queue failures.
- Filtered file view: new
file.view.filtered permission exposes space files while honoring .gitignore (and hiding .git), and mod mounts only need this scoped access. - Sandbox recovery: agent workers subscribe to
sandbox.replacing lifecycle events, proactively drop stale connections, and refresh WebSocket URLs when pods are replaced or the network flaps. - Sandbox RPC errors: clearer user-facing failure kinds (
Sandbox is not ready / Sandbox connection lost) with better infrastructure vs. tool-error classification. - Generation tray: compact session generation tray with a video icon, status dots, lighter backdrop, and cleaner expand/collapse UX.
▸ Fixes (2)
- • Strip NUL characters from message content and meta before Postgres JSON persist.
- • Allow mod mount setup with filtered file view instead of requiring full
file.view.
- Per-turn generation policy: Constrain which multimodal models and parameters a turn may use via a shared
GenerationPolicy protocol—enforced through API, agent sandbox env, CLI, and a tabbed Model Selector (Chat / Generation) with auto/limited modes. - Session & task realtime lifecycle: Replace legacy turn progress/snapshot events with structured
session.* and task.* lifecycle events, dedicated API/worker dispatch helpers, richer realtime records, and SDK subscription cleanup. - Live task runs cache: Event-driven task-run cache keeps sidebar and workspace in sync on
task.created/task.updated, reconciles optimistic turn IDs on request accept, and slows polling to realtime-first updates. - Collapsed sidebar flyouts: Hover/focus flyout panels expose pinned items, sessions, checkpoints, cronjobs, and tasks from the compact rail without expanding the full sidebar.
- Session generation task tray: In-session generation jobs surface as persistent media-aware task cards so image/video/music progress stays visible while you keep working.
▸ Fixes (3)
- • Model selector correctly renders parameter constraints and minimum-one enum selection guards.
- • Generation tray collapse state stays stable across session updates.
- • CLI surfaces clearer diagnostics when network fetch calls fail.
- Covas canvas workspace: Open and edit
.covas documents in a PixiJS workspace with drag-to-canvas cards, renderer/theme registries, inspector, and manual save. - Billing credits: Integrate credit balance and usage across API, SDK, and sidebar so sessions and prompts can meter against account credits.
- Async generations via neta SDK: Move multimodal generation onto worker tasks and the neta generation SDK, with Gemini image and Ark video adapters plus richer CLI task feedback.
- Workspace layout controls: Add a collapsible left sidebar rail and preview focus mode so chat, files, and previews can expand without losing context.
▸ Fixes (3)
- • Recover web auth from transient unauthorized responses instead of forcing a hard logout.
- • Improve canvas preview resizing and text clarity, and avoid duplicate toolbar icons.
- • Honor CLI JSON output and restore reliable space/auth defaults.
- Default space mods: New spaces can ship with platform default mods pre-mounted, and the create-space flow now supports mounting extra mod spaces under
/mods/<slug> with API/SDK/protocol support. - Local cross-space reads: Agent cross-space read/query tools run locally against workspace mounts instead of round-tripping through the sandbox, cutting latency for multi-space work.
- Extensible themes: Theme registry plus Solarized Dark/Light, with CodeMirror and markdown styling wired through shared tokens for consistent editor and UI appearance.
- Markdown frontmatter preview: YAML frontmatter is parsed and rendered as a structured key/value panel above document content.
- Faster first paint caches: Profile and space record caches hydrate auth, sidebar, and workspace routes from local storage while remote data refreshes in the background.
▸ Fixes (3)
- • Settle agent retry failures and fail stuck turns instead of leaving sessions hanging
- • Load the current sidebar space from the URL and refresh command-palette default-space cache
- • Allow underscores in mod mount slugs; polish dark-mode reading contrast
- Space avatars: Spaces get a public profile with avatar identity, surfaced consistently in the sidebar, command palette, mentions, search, explore, and trending.
- Inline space profile: Edit description, upload a space avatar, and manage slug for pretty
/{username}/{slug} URLs directly on the space workspace page; the separate settings profile route is removed. - Space identity API: Space list/detail/search responses expose a normalized
publicProfile with validated avatar URLs, and public-asset deploy config supports avatar hosting.
▸ Fixes (2)
- • Guard sidebar loads against space-switch races so sessions, pins, checkpoints, cron jobs, and tasks no longer flash stale data from the previous space.
- • Avoid clipping collapsed tool output height, and hide the ⌘K shortcut label on small mobile sidebars.
- Run Command: Execute bash in space sandboxes from the command palette, with shared core/infra primitives, agent job processing, and live streaming output.
- Space slugs: Assign per-owner URL slugs so spaces resolve at
/[username]/[spaceSlug], with create/settings/SDK support. - Message & turn timing: Persist
startedAt, completedAt, and durationMs across protocol, DB, agent, API, and realtime, and surface durations in the UI. - Public avatar uploads: Upload profile and space avatars through a dedicated public-assets pipeline (presigned storage, SDK, CLI, and polished web editors).
- Streaming edit diffs: Render optimistic partial diffs for edit tool input as each side streams in, removing the JSON→diff jump.
▸ Fixes (3)
- • CLI clears the full auth session on 401 instead of only the device code
- • Preserve tool timing metadata when assistant content is persisted
- • Sync space env cache on space creation
- Inline profile editing: Display name, username, and avatar URL edit in place with per-field save/cancel, skeleton loading, and a cleaner identity header—no full-form Save pass.
- Env-aware sandbox idle TTL: Default auto-destroy idle TTL is now 12h in prod and 10m in dev (was 48h everywhere), aligned across API, CLI, and sandbox-controller.
- Honest authz responses: Permission denials return 401/403 via a shared
authzDenied helper instead of masquerading as 404; invalid tokens reject with 401. - Session fork tree polish: Sidebar fork branches use clearer last-child connectors and brand-tinted guides; list refresh preserves fork cache so hierarchy does not drop.
▸ Fixes (4)
- • Drain in-flight stream flushes before reset so assistant deltas are not lost; empty-delta flushes no longer pin the flush lock forever
- • Guard Enter/shortcut handlers during IME composition (composer, renames, command palette)
- • Clean stale
.git/index.lock before worker git ops; prevent sandbox WS unhandledRejection crashes on Node 22+ - • Refresh directory contents on expand; grant worker SA delete-pods RBAC in the sessions namespace
- Sandbox upload materialization: Refactored space file uploads to support
workspace and sandbox_tmp destinations, materializing files via agent sandbox_bash jobs instead of async worker import tasks - Streaming turn finalization: Apply full content blocks from the commit event and keep the finalized streaming preview stable until reconciliation, eliminating re-stream flicker on completed generations
- Sandbox readiness: Warm sandbox connections asynchronously and refine tool failure handling for more reliable coding sessions
▸ Fixes (2)
- • Allow guest access to the prompts endpoint so anonymous space visitors are not redirected to login
- • Prevent completed generations from re-activating the typing animation after finalized or stale HTTP tail data
- Structured tool call details: Chat tool calls now render tool-specific input and output views—commands, paths, ranges, edit diffs, and collapsible long content—with clearer live/partial state and mobile-friendly layout.
- Typed sandbox RPC failures: Sandbox WebSocket RPC errors are modeled as structured
SandboxRpcErrors (retryable, infrastructure, error code) and surfaced cleanly through bash tools and the agent session, so infrastructure failures no longer look like generic tool crashes.
▸ Fixes (1)
- • Filewatch repair loop now runs every 5 minutes instead of every 10 seconds, cutting unnecessary repair churn.
- Sandbox lifecycle controller: New
@cohub/sandbox-controller package models lifecycle vs runtime health, auto-resumes stopped sandboxes on new prompts, and replaces batch reaping with per-space auto-destroy policies (idle TTL or never) exposed via API, SDK, CLI, and space settings. - Usernames: Unique
@username profiles with validation, reserved-name blocking, and conflict handling—available in settings, Explore/search context, SDK, and CLI. - Global space pins: Pin spaces across the product from the command palette (
p: filter, pin toggle, insert action) with user-scoped global pin refs. - Sectioned Explore: Curated Explore sections with richer space cards—owner identity, stats, latest save hints, and sandbox status—backed by a sectioned API and cache refresh.
▸ Fixes (3)
- • Apply finalized stream content immediately so the UI does not stall waiting on slow turn hydrate
- • Recover session refresh correctly for in-flight turns and stop rejecting prompts when a sandbox is still recovering
- • Improve iOS input zoom / mobile form ergonomics and expand final tool-call results by default
- Session link mentions: Paste space or session URLs in the composer and they resolve into labeled
@[space/session] mentions with cache-aware label lookup. - Space access payload: Space GET returns resolved
access (role + permission list); session sharing is gated on member.manage instead of ad-hoc checks. - Space settings polish: Copy member UUIDs, auto-copy invite links on create, and set/edit mod mount slugs without leaving settings.
- Image MIME hardening: Composer and agent only treat JPEG/PNG/GIF/WebP as images, with clear fallbacks for unsupported types.
- Cross-space query path policy: Agent query tools reject paths that escape
/workspace when reading another space.
▸ Fixes (2)
- • Model selector keyboard navigation, shortcut propagation, and selected-row highlight aligned with hover.
- • API and CLI surface cleaner error messages; SDK extracts nested
message fields; optional COHUB_DEBUG_ERRORS adds status/code/requestId detail.
- Space Mods: Mount other spaces into a workspace under
/mods, with API, SDK, CLI, and settings UI; sandbox restarts when mods change. - Chat file references: Attach arbitrary files and folders in the composer via drag-and-drop, paste, or picker; uploads go through a shared space-upload pipeline with progress.
- End-to-end request tracing: Propagate
requestId/trace context across API, queues, and agent turns, with stream telemetry and filtering of noisy realtime Redis spans. - Session domain services: Extract session prompt/turn orchestration into a shared service layer; turns start as
queued with clearer lifecycle tracking. - Stream snapshot throttling: Coalesce agent stream snapshot writes to Redis to cut write pressure during high-frequency streaming.
▸ Fixes (3)
- • Fail interrupted sandbox tool calls instead of leaving them hanging.
- • Collapse the expanded composer after send.
- • Harden prompt scheduling validation and error responses.
- In-browser debugger: New
@neta-art/cohub/debugger instruments console, fetch/XHR, EventSource, and WebSocket traffic with ring-buffered capture, redaction, and HAR export; the web app auto-starts it and can download a debug bundle from the user menu. - ContentBlock normalizer: Shared
@cohub/core/content/normalize canonicalizes image aliases and nested tool_result content across prompt submit and the agent pipeline, with safe-mode invalid-block reporting. - Multimodal image path: Agent runtime now converts and preserves base64/URL image blocks end-to-end when building LLM user and tool-result messages.
- Turn recovery hardening: Locked/busy turns requeue with exponential backoff; queued-turn drain runs after lock release so abort/steer and completed turns no longer stall the session queue.
- Command palette timestamps: Results show compact local timestamps (time today, date otherwise) with full timezone tooltips.
▸ Fixes (3)
- • Direct shell turns honor parent abort signals so cancellations stop in-flight commands.
- • Sandbox bash streaming skips non-string chunks and keeps execution-token redaction intact.
- • Removed the running tool-call side rail indicator to reduce visual noise.
- Sandbox connection pool: Replaced acquire/release leases with
ensureSandboxConnection, LRU pruning, pending-request-aware idle eviction, and deduplicated WS URL resolution for more reliable multi-space sandbox access. - Cross-space tool routing: Space-aware tools now always establish a sandbox connection for the target space and preserve full tool execution context when switching spaces.
- TypeScript builds via tsgo: Switched package builds to the native TypeScript compiler preview for faster typechecking and builds.
▸ Fixes (1)
- • Sandbox pool no longer disconnects spaces that still have in-flight RPC requests during capacity pruning or idle eviction.
- Core package consolidation: Introduce
@cohub/core and @cohub/infra, fold permissions, session prompts, FS CDN policy, tracing, and queue helpers into shared packages, and tighten protocol boundaries across realtime, gateway, and sandbox contracts. - Direct shell commands: Run
!command turns without an LLM round-trip, with chunked bash output streaming and execution-auth injection into the sandbox environment. - Streaming tool call UI: Simplify and polish in-progress tool call rendering for clearer live feedback.
- Sidebar fork ordering: Improve how forked sessions are ordered in the sidebar for more predictable navigation.
▸ Fixes (3)
- • Restore the direct shell command execution path and stream bash output by chunks.
- • Inject execution auth into bash env and
ENV=dev into dev sandbox pods. - • Break session-content circular dependencies and avoid eager prompt dependency initialization.
- BullMQ agent runtime: Replaced Redis list turn dispatch with a BullMQ-backed agent queue, batch turn claiming/merging, session locks, abort pub/sub, and sandbox connection pooling for more reliable concurrent execution.
- Space FS CDN cache: Warm media and large workspace files to object storage with a dedicated system worker, so reads can return CDN URLs instead of proxying every byte through the API.
- Shared platform packages: Extracted
@cohub/db-schema, @cohub/permissions, and @cohub/bullmq-ops, unified package naming under @cohub/*, and split workers into user/system deployments with queue snapshots and Prometheus metrics. - Space file APIs & CLI: Added batch file read with preparing/CDN delivery states, plus a CLI space file upload command for multi-file and directory uploads.
- Session forks in sidebar: Surface forked sessions in the web sidebar, with command palette polish and clearer token usage including cached input.
▸ Fixes (3)
- • Recover stale active agent turns and detect stale session handles via file signature.
- • Avoid CDN CORS and disposition issues on space file downloads while keeping embedded asset URLs stable.
- • Fix model selector keyboard navigation.
- Space mentions: Type
@ in the composer to reference other spaces with local-first search, owner avatars, interactive chips in chat, and automatic conversion of pasted space URLs. - Command palette & search: Typed resource filters, default recents, and server-side scoped search with membership ranking, public space visibility, and owner profile enrichment.
- CLI device login: Logto device authorization flow for browser-based
cohub auth login without pasting tokens by hand. - Usage insights: Space overview replaces the heatmap with cost and token breakdowns, daily trend charts, and 7 / 30 / 90 day ranges.
- Theme system: Semantic tokens moved into dedicated light/dark theme modules for safer, theme-consistent UI styling.
▸ Fixes (4)
- • Preserve file tree expansion state after saving files
- • Update the URL when jumping to a session turn
- • Normalize
! shell commands in prompt templates with leading whitespace - • Close slash menu after selecting a command; keep model selector search focus visible
- Slash command menu: Rebuilt as a dedicated
SlashCommandMenu with ranked filtering, category groups, loading/empty states, and richer keyboard navigation on desktop and mobile. - Model selector shortcuts: Open the model picker with ⌘/Ctrl+Shift+M, navigate with arrows or Ctrl+N/P, and discover the flow from the help panel.
- CLI expansion: Add
cohub search, top-level prompt, turn inspection under sessions, multimodal listing via models ls --model-type multimodal, and sandbox self-update for @neta-art/cohub-cli. - Prompt templates runtime: Share prompt config through
@cohub/config-runtime/prompts, load from .agents/prompts, and publish Redis caches on platform/user checkpoint saves.
▸ Fixes (3)
- • Preserve nested code fences inside markdown/md/mdx blocks while rendering.
- • Hide code copy controls during live streaming to stop flicker.
- • Allow shifted letter shortcuts only outside editable fields so composer typing stays intact.
- Multimodal generations: Declaration-driven generation API across protocol, API, SDK, CLI, and config runtime — YAML models, content blocks (text/image/video/audio), OpenAI images adapter, and
cohub generate / cohub generations ls. - Vim session navigation: Session timeline keys for scroll (
j/k), turn jump (Shift+J/Shift+K), top/bottom (gg/G), and composer focus (i), plus global new chat (⌘O / Ctrl+O). - Help panel: Global
? cheat sheet for shortcuts across search, sessions, composer, and files, with sidebar entry. - Command palette ranking: Prefer spaces over sessions and turns in search and palette scoring, with clearer type marks and active-result scrolling.
- Mobile prompt templates: Touch-friendly template picker and broader prompt suggestion support on small screens.
▸ Fixes (3)
- • Keep file tree action menus above hovered siblings
- • Stop generation no longer triggers form submit in the composer
- • Reduce sidebar item action whitespace on hover
- Command palette: ⌘K / Ctrl+K multi-source search across spaces, sessions, and messages—local IndexedDB results merge with remote pg_trgm fuzzy search, ranked by text match, recency, and type priority
- Live streaming markdown: incomplete assistant output is repaired with remend and rendered as a single cached surface for smoother, less jumpy stream UI
- Session generation stream client: SDK
SessionGenerationStreamClient normalizes generation events; web realtime path is simplified onto the shared client - Agent async I/O: session manager and system prompt builder move from sync fs to async I/O with serialized writes, parallel context loading, and safer disposal flushes
- Agent stream performance: deferred content projection, leaner assistant stream state, and quieter tracing/logging cut runtime overhead
▸ Fixes (2)
- • Independent stream reducer state per
session.subscribeGeneration subscription - • Safer post-send recovery timing and streaming markdown surface caching
- Cross-space query tools: Agents can
read, ls, find, and grep other spaces via optional space_id, with permission checks, workspace readiness gates, and path sandboxing backed by fd/rg in the agent image. - Incremental streaming markdown: Chat renders a stable HTML prefix plus a live word-by-word tail with caret animation, cutting reparse cost and reducing layout thrash during long replies.
- Stream-order content merge: Final assistant messages are reordered to match the live stream (including
toolCall → tool_use normalization), so persisted history matches what users saw. - Hybrid query tool routing: Sandbox tools and cross-space tools share one schema; requests without
space_id stay local, while remote spaces go through cached access checks.
▸ Fixes (3)
- • Keep the live streaming preview as the source of truth for the active turn instead of flashing committed content mid-stream
- • Dedupe session recovery requests on the workspace page
- • Respect prefers-reduced-motion for streaming word and caret animations
- Segment-based session forks: Redesign fork lineage around dedicated
session_forks and session_turn_segments tables so branch trees, turn visibility, and anchor resolution stay efficient across deep forks (with async agent fork_session handling). - Direct shell commands: Prefix input with
! to run shell turns that bypass the LLM, stream results in-session, and render as lightweight terminal-style blocks in the web UI. - Normalized generation stream (SDK): Add
SessionGenerationStreamClient / session.subscribeGeneration() to fold snapshots, patches, commits, and turn finalization into stable semantic events for product UIs. - Generation state reconciliation: Unify web generation recovery via
syncGenerationStateFromTail, with stale-response guards and running-turn resume from session tail data.
▸ Fixes (3)
- • Restore fork button by syncing
agentSessionEntryId into session_turns meta on finalize - • Prevent shell-command session-operation deadlocks and handle empty assistant responses
- • Fix
/api/prompts always failing auth by routing PromptsApi through HttpTransport
- Live tool output: Stream partial tool execution results (e.g. bash stdout) to the UI in real time, with throttled updates and an execution-tail preview while tools run.
- Phase-aware tool calls: Distinguish drafting vs executing phases with animated rail, breathing status, input preview, and tool-specific activity labels (respecting reduced motion).
- Realtime architecture: Replace Redis stream consumers with pub/sub channels and internal HTTP APIs across agent, API, gateway, and worker—simpler topology, no consumer-group coordination.
- Drafting preview: Smarter field scoring and change tracking for clearer in-progress tool input display.
- Sandbox file watch: Broader ignore patterns for VCS, dependencies, build outputs, and nested cache dirs, with scoped path matching.
▸ Fixes (3)
- • Restore and enrich running-turn stream snapshots with intermediate metadata and fallback tool-call parsing.
- • Stabilize block identity matching across patches and snapshots; force replace ops for partialResult string patches.
- • Stabilize streaming markdown fences; show last non-empty line in execution tail instead of full collapsed text.
- Unified space prompt scheduling: One
POST /spaces/:id/prompt path covers immediate send plus delay, at, and cron schedules (CreateSpacePromptInput / clientMessageId), with SDK space.prompt(), CLI spaces commands, and a shared submitSessionPrompt core for web, API, channels, and workers. - Message-scoped patch streams:
getSessionTurnPatchStreamKey() isolates session turn patches by message identity (sourceMessageId, messageOrdinal), so concurrent and reconnecting streams no longer cross-apply compact frames. - Text composer attachments: Drop text and code files into the chat composer alongside images, with preview cards and consistent attachment baselines.
- Stop generation control: Abort is separated from interrupt on session turns, with stop-generation UI and clearer agent abort feedback.
- Trending & jobs polish: Trending shows user profiles with a tighter mobile layout; scheduled-job detail is redesigned and the legacy jobs page is removed.
▸ Fixes (3)
- • Websocket compact stream buffering after reconnecting into an active turn from a snapshot
- • Hardened markdown rendering and dark-mode code theme
- • Space env validation returns sanitized 400 errors instead of opaque failures
- Deep session stream patches: Streaming now diffs full content blocks (including nested tool_use fields) instead of only text/thinking appends, with server-side delta extraction and a matching SDK reducer for arbitrary block subpaths.
- Space member profiles: Members API joins user profiles so settings show display names and avatars instead of raw user IDs.
- Markdown list polish: Nested lists, task checkboxes, and list-item paragraphs render with clearer hierarchy and spacing.
▸ Fixes (1)
- • Turn rail now prefers freshly loaded turn status when merging index and session state.
- Streaming markdown pipeline: Split rendering into MarkdownSurface + MarkdownView, replaced Tailwind prose with a custom theme-aware stylesheet, added render caching and throttled streaming updates for smoother chat output.
- Session turn rail: Merged the session scroll rail with turn markers positioned by turn range so long chats are easier to scan and jump through.
- File sidebar actions: Collapsed tree and header controls into dropdown menus with clearer pin/upload/create actions and improved pane resize UX.
- Space upload reliability: Wired worker OSS config for presigned uploads, fixed virtual-hosted URLs and CORS, and preserved uploaded folder hierarchy including dotfiles.
- Profile & settings polish: Improved settings navigation and profile layout, and fixed Logto Management API profile updates end to end.
▸ Fixes (4)
- • Reduced sandbox recovery false positives
- • Fixed mobile drawer swipe-to-close
- • Aligned turn rail markers with the scroll thumb range
- • Switched markdown code highlighting with app light/dark theme
- Presigned space uploads: Two-phase S3 upload with async worker import, folder drag-drop, and live progress across API, worker, SDK, and web.
- User profiles: Logto-synced profiles with editable display name and avatar, plus a unified
authorProfile model across protocol, realtime, and UI. - Inline port preview: Preview running space ports directly in the workspace pane without leaving the session.
- Turn rail & context usage: DOM-accurate turn markers with older/newer pagination, plus color-coded context usage in the composer and message footer.
- Code block copy: One-click copy buttons on markdown code blocks for faster reuse of agent output.
▸ Fixes (3)
- • Recover session stream snapshots after reconnects and load full session state on route switches
- • Stop API request storms on failures with backoff, single-flight sign-in, and offline-aware WebSocket reconnect
- • Fix sidebar session pagination and show workspace-relative tool file paths
- Space invites restored: create, copy, and revoke invite links with role, TTL, and max-use controls in space settings; add members by UUID and manage roles in place
- Clickable tool file paths: read/write/edit tool calls surface file paths that open directly in the workspace
- Authenticated space file downloads: SDK and web download private files via authenticated blob URLs instead of bare API links
- Ports panel polish: rename Preview to Ports and collapse status into a status dot with hover tooltip
- Monorepo alias resolution: move protocol/SDK subpath aliases into SvelteKit config with correct specificity order so bare package names no longer shadow subpaths
▸ Fixes (2)
- • Keep the member remove action visible in space settings
- • Download private space files through the SDK transport
- Live sandbox previews: Sandbox now watches public ports and streams
space.ports.changed end-to-end so the workspace shows Live/Idle preview status with openable public URLs. - User Rules: New Settings → User Rules surface for publishing personal
AGENTS.md from your config Space, with API read access and automatic inclusion in chat system context. - Stream snapshot v2: Reconnect recovery upgrades to full
session.turn.snapshot payloads (current + intermediate messages), with SDK-side ordered patch buffering for out-of-order frames. - Space navigation: Recent Spaces become a multi-entry local history, the space picker splits Recent vs All, and New Chat is elevated as a primary action.
▸ Fixes (3)
- • Empty git repo imports no longer fail when creating a space from a repository without HEAD
- • Unread badges track
lastMessageId instead of turn id, fixing mismatched unread state - • Avoid repeated empty turn-index fetches; hide the mobile turn list control on desktop
- Live multi-message streaming: track
messageId / messageOrdinal across agent → API → gateway → web so intermediate assistant messages render live in the process card, with user-scoped generation persistence and safer turn/message boundary handling. - Turn navigator: paginated turn index API plus desktop
TurnRail and mobile TurnBottomSheet for jump-to-turn browsing of long sessions. - Sandbox self-healing: detect stale/critical mount failures, recover via API with distributed lock and smoke checks (kubernetes Exec API), expose health + manual force-recover in Space settings, and add sandbox readiness/liveness probes.
- Faster space open:
space_records IndexedDB + memory LRU cache seeds workspace state immediately while refreshing in the background; session loading is decoupled from space load. - Safer config publish: worker replaces backup+rename with in-place directory sync to avoid cross-filesystem rename failures and reduce publish risk.
▸ Fixes (3)
- • Multi-message streaming transitions, turn switches mid-stream, and duplicate final/process-card messages
- • IndexedDB DataCloneError from unsanitized cache writes; markdown render race during streaming
- • API pods/exec RBAC and clearer sandbox recovery error logging
- Explore spaces: platform-curated explore feed surfaces discoverable spaces with checkpoint previews, pin counts, and sandbox status, backed by Redis-cached config and a new SDK API.
- Pinned resources: pin sessions, checkpoints, and files per space (rank-ordered, capped at 10) with sidebar actions, marks API, and space.pin permission.
- IndexedDB cache layer: replace localStorage list caches with repository-backed IndexedDB stores (session lists, turns, space FS), memory LRU, cross-tab BroadcastChannel sync, and periodic cleanup for faster first paint and multi-tab consistency.
- Unified resource actions: consolidate sidebar and workspace item actions into consistent dropdown menus, with improved pin flows and mobile long-press / insert gestures.
▸ Fixes (3)
- • Normalize gateway channel commands and turns across Discord and Feishu providers
- • Default markdown files to preview mode
- • Remove PageHeader right-section overflow and width constraints
- Turn-based session architecture: Rebuilt chat rendering from message-centric to turn-level model, with
turn.updated / turn.finalized realtime events, on-demand intermediate tool details, and a cleaner SDK turns client. - Optimistic turn rendering: Show a provisional running turn immediately on send, then swap in the real turn id on success for snappier session UX.
- Feishu channel commands: Add session commands, reply to inbound Feishu messages, expand docs/images in the gateway, and normalize document URLs.
- Unified tool-call UI: Extract shared tool-call formatting and block-ordered message content flow so process cards, intermediate bubbles, and assistant replies render consistently.
▸ Fixes (2)
- • Stop markdown render callback loops that could thrash the chat timeline.
- • Avoid duplicate intermediate tool-call entries during streaming turns.
- Patch-based session streaming: Replace full-content turn progress with sequenced
session.turn.patch ops (append/replace/merge/remove), plus a client SessionPatchReducer for efficient incremental updates. - Compact WebSocket frames: Opt-in
session.compact_stream.v1 capability ships lightweight delta/patch frames over the wire, cutting realtime bandwidth for long streams. - Stream resume after reconnect: Redis-backed session stream snapshots restore in-flight assistant output on auth/reconnect and page refresh, so generation continues without a blank turn.
- Intermediate assistant messages: Patch sequencing now tracks
assistant_intermediate messages alongside finals for multi-step turns. - Sandbox NFS self-heal: Auto-recover stale mounts when NFS file-handle errors occur, improving sandbox filesystem reliability.
- Optional auth for RBAC routes: introduce
getOptionalAuth so session, space, file, task, and usage APIs can authorize via policies—including anonymous access—instead of requiring a signed-in user up front. - Realtime final-turn consolidation: remove
session.turn.final and treat assistant finals through session.message.persisted, with a leaner RealtimeMessageRecord payload and SDK turn.final mapped from assistant_final messages. - Readable-user ID caching: short-TTL cache for space membership lookups cuts DB load on realtime fan-out.
- Config mount path alignment: publish and sandbox mounts use
PLATFORM_CONFIG_ROOT / CONFIGS_SUBPATH so platform and user agent configs resolve correctly.
▸ Fixes (2)
- • Correct session turns pagination (exclusive older cursor, nextCursor, and page slice) and add a backfill script for missing turns.
- • Complete chat generation and auto-scroll only on terminal assistant messages (
assistant_final / assistant_error), not every assistant persist.
- Session turns: First-class turn tracking for space sessions—lifecycle status, intent, sequence, usage/tool summaries, and cursor-paginated turn APIs
- Turn object storage: Persist intermediate messages and tool-call details in S3 with signed/CDN access for full turn inspection
- Turn interrupt: Agents auto-interrupt a running turn when a new one arrives; internal interrupt endpoint for explicit cancellation
- Tool input summaries: Smarter tool-input summarization with truncation tracking for leaner turn records
▸ Fixes (2)
- • Prefix cost displays with $ and drop duplicate cost under space usage
- • Accept short user IDs when publishing worker config
- Realtime filesystem sync: Sandbox fsnotify watcher streams debounced, batched changes through agent/API/worker into space WebSockets, so web file trees, open editors, and previews stay live across collaborative edits and bootstrap.
- Cursor-paginated sessions: Space session lists use limit/cursor pagination (default 20) across API, SDK, and web sidebar Load more, avoiding unbounded first-load fetches.
- Environment-aware SDK & CLI: Clients resolve prod/dev API and WebSocket endpoints by default (
ENV=dev or env: "dev"), with per-environment CLI auth tokens. - Usage cost breakdown: Space usage and trending surfaces expose input/output/cache cost totals alongside token counts for clearer spend visibility.
- Generation-aware unread state: Session generation tracking (
isGenerating) and smarter viewed-message anchors keep unread badges accurate while turns stream.
▸ Fixes (6)
- • Refresh space env before each agent turn so sandbox processes see latest variables
- • Route worker shared caches and space events through app Redis while keeping BullMQ on its queue Redis
- • Make dialog overlays cover the full viewport on mobile
- • Parse env import values that contain
= correctly - • Persist session-list pagination state across sidebar reloads
- • Sanitize sandbox child process env and stop large-scale sandbox rollout hangs
- Local JWT auth: new
@cohub/auth package verifies Logto access tokens via JWKS in API and gateway, removing remote /v1/user and /api/me auth round-trips. - Resilient web auth: centralized auth store with refresh-token fallback, redirect-preserving 401 handling, and an auth-ready gate so UI no longer flashes unauthenticated state.
- Shared models runtime:
@cohub/config-runtime unifies models config parse/merge/cache across agent, API, and worker, with Redis-backed platform + per-user overlays. - Space env import: paste
.env content in the space workspace to bulk-create or overwrite environment variables.
▸ Fixes (1)
- • Unauthenticated
/api/models requests now return 401 instead of 502.
- Space invite links: Hosts can create shareable invitation links with role pre-binding, configurable TTL, and usage limits. Includes a dedicated accept page, revoke/copy controls in Members, and full SDK + API coverage backed by Redis tokens with optimistic locking.
- Space env management UI: Manage space environment variables directly from the workspace settings surface via new SDK env APIs.
- Drizzle query tracing:
@cohub/tracing instruments Drizzle ORM so API and Worker DB queries emit spans with SQL, operation type, and duration. - Agent reliability hardening: Replace fire-and-forget async paths with error-safe schedulers, hook guards, Redis listener rejection handling, and process-level
unhandledRejection / uncaughtExceptionMonitor handlers.
▸ Fixes (2)
- • Feishu image pipeline now uploads outbound images and correctly extracts inbound image keys
- • Channel binding reuses alive gateway nodes and applies config/routing updates atomically via Redis MULTI
- Cohub CLI: new
@neta-art/cohub-cli for spaces, channels, sessions, tasks, cron jobs, models, and auth from the terminal - Sandbox public network: publish sandbox ports 3000/5173 via Kubernetes Gateway API HTTPRoutes on cohub.run
- Hot-reload space env: manage environment variables over a REST API without restarting the sandbox pod
- Space invitations: host-issued invite links with role, TTL, and usage limits
- Chat & agent UX: message summary/detail loading, intermediate states, drag sessions into input, and automatic retry on transient agent errors
▸ Fixes (3)
- • Feishu gateway: parse text JSON, download images, and split posts into multiple content blocks
- • Worker: fix config-publish EACCES on backup cleanup and unique-constraint conflicts on checkpoint save
- • Sandbox: redirect package-manager global installs to the node user home
- Space file uploads: drag-and-drop or toolbar uploads into the space filesystem, with a non-blocking progress pane, multipart API, and SDK
files.upload support. - Prompt-scoped execution auth: short-lived grants bind agent bash tools to the initiating prompt, space, and actor, with hardened validation and session cleanup.
- Streaming steer queue: steer inputs are batched while a session is streaming, then drained safely instead of racing the active turn.
- Session generation architecture: web generation state, realtime adapter, and recovery coordinator are split into focused modules with more reliable bootstrap and reconnect sync.
- Agent OTEL redesign: turn, LLM, and tool spans are restructured for clearer, lower-noise traces across agent runtime paths.
▸ Fixes (4)
- • Stabilize session recovery across space switches and reconnect races
- • Render user messages as plain text to avoid accidental markdown parsing
- • Fallback signed_in_user permissions to anonymous_user when the role is not configured
- • Handle empty-repo checkpoint saves when HEAD does not exist
- Prompt templates: Layered plan/review/summarize templates with API, SDK, and composer UI support.
- Session rename: Inline title editing from the header, desktop context menu, and mobile action sheet, with instant sidebar cache updates.
- File path drag-and-drop: Drag file tree nodes into the chat composer to insert markdown path snippets at the cursor.
- Distributed tracing: Shared
@cohub/tracing OpenTelemetry package with end-to-end propagation across gateway, API, agent, and worker, including LLM, tool, and sandbox RPC spans (ARMS-ready). - Owner-scoped user config: Load and publish per-owner agent configuration into sessions and sandboxes.
▸ Fixes (3)
- • Preserve assistant stream block order via stable
streamIndex identity across progress, final, and persisted payloads. - • Allow empty-diff checkpoint saves and push via a dedicated
cohub remote instead of swapping origin. - • Fix usage route 404 by reading parent route params; accept both standard and short UUIDs for agent userId validation.
- Space usage API: New authenticated
GET /spaces/:id/usage endpoint returns hourly token, cache, cost, and request stats with summary aggregation; exposed via SDK space.usage and rendered as a token heatmap on the space detail page. - Immutable assistant stream state: Agent streaming is extracted into a dedicated pure state machine that applies text/thinking/tool deltas immutably and projects content blocks, with unit and integration coverage.
- Session scroll reliability: Scroll-to-bottom is always available with unread-aware state, multi-frame bottom restoration, and composer-height-aware positioning for stable timeline jumps.
- Agent & gateway resilience: On startup, stale processing-queue messages are recovered into a bounded dead-letter queue; gateway heartbeats prune expired nodes with a shared TTL.
- API query efficiency: Session permission checks, channel binding, space list sandbox status, and session forking move from N+1 patterns to batched queries; empty/new sessions skip unnecessary message fetches.
▸ Fixes (3)
- • Correct user attribution for message persistence, token usage, and trending spaces; propagate actor user id through web session prompts
- • Close and ignore stale sandbox websocket connections so reconnects no longer leak or mis-fire disconnect hooks
- • Reset tool blocks when a new streaming preview starts; strip the correct sentinel row in message pagination
- Cohub session runtime: Replaced the pi-coding-agent stack with a first-party agent runtime—session manager, model registry, system prompt builder, and inlined tools—so agent execution is owned end-to-end.
- Layered protocol & public SDK: Split
@cohub/protocol into core/model/realtime/gateway/fs/task subpaths, introduced gateway-contract, and shipped a business-oriented @cohub/sdk client API for co-creation integrations. - Local-first list & file caches: Added a reusable localStorage list-cache factory with TTL, inflight dedupe, and cross-tab sync; session, space, and file-tree caches make sidebar and workspace loads feel instant while still reconciling in the background.
- Workspace & sharing UX: Inline file panel with Source/Preview toggle, message meta bar (time/model/tokens/copy), image zoom with drag-to-pan, WebSocket reconnect status and tail reconcile, Maker role for signed-in collaborators, and a public Trending leaderboard.
- Sandbox process lifecycle: tini as PID 1, process-group isolation, graceful SIGTERM→SIGKILL, and zombie self-heal with heartbeat process/health stats for more reliable long-running sandboxes.
▸ Fixes (4)
- • Streaming tool calls and process expansion no longer drop mid-turn; preview collapse waits for the next progress event.
- • Mobile tables, code blocks, space switcher, and model selector layout/scroll issues.
- • Agent tool_result content no longer duplicates when structured arrays are handled.
- • Session cache update handler infinite loop under rapid reconnects.
- Role-based access control: Replace flat read/write permissions with a host/maker/guest RBAC model, fine-grained permission checks, space members and public access policies across API, SDK, and web
- Shared session access: Anonymous and limited users with session-level access get minimal space info and a stripped workspace UI instead of hard failures
- Token usage stats: Aggregate token usage into hourly stats for usage analytics
- Sandbox capacity: Raise sandbox CPU limit to 2 and restart failed pods with OnFailure policy
▸ Fixes (3)
- • WebSocket clients auto-reconnect on 4001 token expiry even while still connecting
- • Checkpoint saves set git user identity so commits succeed in containers
- • Skip Drizzle v2 migrate when the schema is already healthy to avoid relation-exists failures
- @cohub/sdk: New typed client package with modular APIs, transport, and realtime WebSocket — web fully migrated off local API helpers
- Realtime chat updates: WebSocket-driven session events keep the UI in sync without polling
- Space rename: PATCH rename API plus inline title editing on the workspace page
- Private git bootstrap: Create spaces from authenticated repos via
X-Git-Token (GitHub, GitLab, Gitea) - Checkpoint spaces via Gitea fork: Space creation from saves uses fork → rename instead of clone-and-push, preserving history and parent linkage
▸ Fixes (4)
- • Deduplicate streaming and tool_call/tool_result content so assistant turns persist and render once
- • Raise sandbox WebSocket ReadLimit to 50MB for large payloads
- • Align task run id with jobId so task lookup no longer 404s
- • Push full history on public repo import; set git safe.directory on all worker git commands
- Space domain model: Replaces Runtime/Workspace with Space + Checkpoint as the core co-creation model, backed by a v2 schema, modular
/spaces APIs, and full terminology migration across API, agent, worker, gateway, and web. - Agent / sandbox split: Introduces a Go sandbox executor with WebSocket RPC as the execution plane; the agent becomes a pure control plane that dials the sandbox, with reconcile-based provisioning and image tracking.
- Realtime WebSocket fabric: Replaces per-space SSE with a global output stream, Redis Pub/Sub fan-out, and a typed realtime envelope protocol across gateway, API, and web.
- Optimistic chat & streaming: Adds pending-message send/reconcile, server sequence ordering, and anchor-based stream tracking for snappier, race-resistant session timelines.
- Checkpoint bootstrap & workspace shell: Create spaces from blank, git, or checkpoint; dedicated checkpoint/cronjob/task-run pages under a unified space shell with redesigned sidebar and settings.
▸ Fixes (4)
- • Chat auto-scroll, composer overlap, and duplicate streaming renders during live turns
- • Model selection not applied over the WebSocket inbound path
- • Sandbox WebSocket reconnect loops and agent↔sandbox connectivity (POD_IP reporting)
- • Dark/light theme FOUC and right-sidebar file preview not opening
- Runtime filesystem: browse, view, edit, create, delete, and move workspace files in-runtime with a CodeMirror editor, recursive file tree, and resizable collapsible sidebars.
- Collaborators & permissions: invite collaborators with grantee-level access control, permission icons in settings, and multi-user sender attribution on chat messages.
- Jobs & scheduling: new Jobs page for cron and one-time tasks, soft-deleted cron jobs, agent-guided task creation, and a worker
send_message task for automated deliveries. - Feishu channels: first-class Feishu gateway provider with outbound rendering and a dedicated channel creation flow with per-provider setup guidance.
- Chat UX: ProcessCard groups intermediate assistant steps during streaming; mobile right drawer with refined swipe gestures; resizable app sidebars and multi-stage Docker builds on Node 24.
▸ Fixes (1)
- • Prevent IME Enter from sending mid-composition; fix wake-runtime race with terminating pods; preserve process-card grouping and streaming message order; correct runtime collaborator write permissions.
- Runtime & session sharing: Resource-level permissions with a redesigned share modal, canRead auth, and anonymous access to public runtimes/sessions.
- Chat stack upgrade: Paginated history with IndexedDB cache, image attachments, global media lightbox, Shiki code highlighting, and per-session model selection from a live catalog.
- Session-scoped realtime: Independent SSE streams per session with heartbeats, client reconnection, ordered message persistence, and unthrottled agent streaming for smoother timelines.
- Task worker platform: New BullMQ-backed worker service with task protocol, enqueue APIs, and deploy/CI pipelines for background and scheduled work.
- Mobile-first shell & PWA: Responsive layouts, swipeable sidebar drawer, centralized auth/runtime stores, and installable PWA support; runtime status now lives in the DB as the single source of truth.
▸ Fixes (3)
- • Preserve chat scroll position across session switches and avoid blank timelines on turn end
- • Correct streaming tool-call interleaving and harden message persistence reliability
- • Prevent sidebar/settings request storms and keep shared runtimes stable across list refreshes
- Design system refresh: Cohesive dark-first UI with OKLCH semantic tokens, dark/light/system themes, Instrument Sans + JetBrains Mono, denser list layouts, and a unified settings surface.
- Real-time session streaming: Replace message polling with authenticated SSE; page-level reconnecting stream cuts chat update latency from ~1s to under 100ms and streams thinking/tool calls live.
- Protocol simplification: Remove the OpenAI-style Responses API; unify on Anthropic-style ContentBlock (
tool_use/tool_result, inline tools) and POST /sessions/:id/messages plus runtime event streams. - SSH key management: Settings UI and API for user SSH public keys so Gitea push access can be managed end-to-end.
- Faster workspace clone: Agent git init uses shallow clone and parallel checkout, roughly halving NFS-backed workspace setup time.
▸ Fixes (4)
- • Resolve Discord mention IDs to readable names in inbound messages
- • Keep runtime detail status in sync with live polling
- • Add gateway
/readyz readiness probe and fix StatefulSet deploy via pod deletion - • Separate Logto auth endpoints/resources for dev vs prod
- Logto authentication: Replaced local token auth with Logto SSO, async access tokens, and per-page auth guards instead of a global layout gate.
- Non-blocking agent runtime: Reworked the supervisor to fire-and-forget Redis inputs with explicit ack/reject, so multiple sessions can run in parallel and mid-stream messages use steer instead of blocking prompt.
- Session source tracking: Added a
source field that records where a session came from (web, Discord DM, guild channel, or thread) and surfaces it in the session list. - Chat UX polish: Auto-title sessions from the first message, collapsible thinking blocks, scroll-to-bottom control, and Enter-to-send / Shift+Enter newline in the composer.
▸ Fixes (4)
- • Persist multi-turn agent messages correctly across the full agent loop
- • Raise runtime provisioning wait timeout from 30s to 60s
- • Keep chat input visible with proper session tab flex layout
- • Hide thinking from final Discord replies while keeping a quieter collapsible view on web