Awesome Cohub
中文
Cheatsheetscohub.cheat.faq6 min

Skills and config

SymptomLikely causeFix
/skill:foo missingNot installed in this Space / not published from configInstall into project or config Space + Save
Skill exists on disk, slash emptyCatalog/cache lagCheck skill-catalog-cache; reopen Chat / wait for index
Scripts missing after installAssets lived at repo rootKeep them under skills/<name>/scripts/
Wrong skill winsLayer collisionplatform -> mods -> user -> workspace

Works / Apps

SymptomFix
Share link is a Sandbox hostPublish a Work/App; do not ship a raw Sandbox URL
Refresh 404 on routesStatic hosting + History API; use hash routing or prerender
White screenCheck base: "./", asset paths, browser console, and rebuild dist/
File/dir publish rejectedApp target limit or missing index.html: 1 GiB, directory 1-1000 files. General file uploads are separate (2 GiB single file)
apps publish says the target is missing--file / --dir resolve against a source; inside a Sandbox that is the workspace, elsewhere it is the local machine. Pass --source workspace or --source local explicitly
Target edited but public page is unchangedPublish an explicit new version
Viewer still sees an old versionVersion URLs are immutable (?cohub_v=<n>); publish an explicit new version and share that link
App auth prompt never appearsApps published or installed in the Shell Space are trusted and skip consent; other Apps must use client.auth.authorize()
Work preview turns blank after an updateCurrent preview should retain content on refresh failure; use its Retry action and inspect version state
desktop open --call does nothingThe App must register that exact method and be opened from an approved Cohub origin
Viewer API 403Check whether the call needs an App scope or a viewer grant on the target Space
generation.create succeeds but polling is 403Add/request taskrun.view; creation and result reading are separate permissions
Task Browser Mine view is emptyRequest viewer-only user.taskrun.list; Space view uses taskrun.view instead
Commerce works only in previewUse a published Work/App runtime; raw assets and local previews have no runtime context
Checkout returned but the UI does not confirmSuccess is confirmed against the order/subscription state; a forged or stale return URL no longer claims a purchase
App is missing from the Space Apps panelCheck .cohub/apps.json, the installed entry's enabled flag, and Marketplace permissions
App install overwrites someone else's changeReload the manifest and retry with the latest file revision; do not replace a stale snapshot
Space Activity costs are zeroCost fields are intentionally redacted for viewers without Space-management access
Command palette default list flickersLet the local/IndexedDB cache render first; inspect the overview request only if the stale snapshot cannot refresh

App surfaces and Actions

SymptomFix
Overlay opens but nothing is clickableinputRegion defaults to "none"; call cohub.app.requestConfigure() from the App. Use geometry + "all" for fixed panels, rects for moving elements (rects respond to hover, not the first touch tap)
Overlay looks opaque or blurs constantlyPaint transparency (html, body { background: transparent }), declare <meta name="color-scheme" content="light dark">, and avoid backdrop-filter
An overlay silently became a windowThe overlay cap (8) was reached; dismiss overlays with Escape or ask each App to requestClose()
Embedded App cannot close itselfcohub.app.requestClose() relays to the embedder's onCloseRequest; the embedder must pass that callback and be a verified host
app.actions.run() fails immediatelyCheck the action key ([a-z0-9_-]), that exactly one entrypoint matches in the published version, and that the artifact is a directory App
Action fails with timeout/abort/exit codeReasons are reported via the shared execution-source contract; inspect the Task Run. Actions cannot call actions.run() recursively
Action input shows up in a Task RunExpected: input is stored with the run and visible to the owner and Space members who can inspect tasks. Do not pass secrets

Local Runtime, decisions, and rooms

SymptomFix
cohub sandbox up no longer worksIt was removed in v2.51; use cohub runtime up (Local Runtime) or let the Space run in a cloud Sandbox
Turn runs locally but tools behave differentlyHarnesses (Pi/Codex) own tool semantics; check cohub runtime logs and confirm the intended --harness
Runtime lost a folder changeNative monitoring can fall back to a bounded scanner; cohub runtime status reports the active backend
space.decision() returns nothingThe question type must be noul/choice/score and the decision declared in .cohub/decisions.json; decision models are deliberately excluded from LLM pickers
Room events stopped arrivingPublish/send are not replayed; resync via onStateChange() / onOutOfSync() and check the 24h absolute lifetime
Rooms are empty after a restartOnly the latest 1,000 events (up to 512 KB) are retained; persist authoritative state to Space files

Hooks and webhooks

SymptomFix
Webhook returns 404The endpoint name is the hook file stem: .cohub/hooks/mail.yml -> POST /api/spaces/:id/webhooks/mail, with on.event: webhook
Webhook rejects the requestCheck on.secret (x-cohub-webhook-secret or ?secret=); webhooks are also rate-limited per Space
A webhook hook never runs after a restorespace.workspace.ready refreshes the hook cache; a workspace that is still missing is not cached as "no hooks"
uses: hook failsThe target must be a published App Action (owner/space/app/action); see App Actions
Hook re-enters itselfCheck .cohub/** ignores and task.updated filtering

Board

SymptomFix
Legacy node/sequence payload rejectedUse the v3 document model (settings/items/animations); Sketch blocks are replaced by Board scripts
boards inspect / --background not recognizedv3 CLI: boards get replaces inspect, --paper replaces --background
Board changes land on the wrong itemResolve ids by path; ids are stable per board file, not global
Old frame envelope rejectedAuthor with position / size / rotation; draw and arrow geometry is world-space and frames are derived
Board batch fails with a diagnosticFix the reported authoring path (for example items.0.props.text) before retrying
Board API error lacks contextCapture the stable error code, diagnostics, and requestId
Board animation update refetches unnecessarilyApply the animationPatch from board.changed when the update is a pure effect/composition patch
Replay throws "needs the first transactions page"Load the newest page first; it carries the snapshot. Use --operations for inverses and snapshot rows
Board mutation duplicated after retryReuse the same mutationId; inspect the receipt
Board mutation conflictsRe-read the current version and retry with a fresh baseVersion
Composition renders differently after publishKeep referenced assets in the Space and validate the semantic snapshot before publish

Files, tasks, and identity

SymptomFix
Concurrent edit was rejectedHandle CONFLICT: read the latest version, then use a smaller edit or fs.edit
Upload rejected with file_too_largeSingle durable uploads cap at 2 GiB, a batch at 2 GiB / 2000 files; inline uploads cap at 64 MiB. Published App targets keep the 1 GiB cap
Upload rejected with upload_rate_limitedThe per-user hourly quota was hit; wait retryAfterSeconds from the response
Concurrent upload rejectedUploads detect and reject concurrent local edits via snapshot validation; re-read the file and retry
Edit fails after harmless formatting driftRetry with the normalized current snapshot; recoverable edits tolerate line endings, BOM, and trailing whitespace, but ambiguous matches still fail
Command output appears incompleteCheck the explicit truncation flag/details before treating the output as a complete result
CLI updates while a command is runningSelf-updates are detached and apply on the next invocation; set COHUB_CLI_AUTO_UPDATE=0 to disable them
Task run hides command/result fieldsPermission-based privacy: viewers without Space data access see execution fields and billing redacted. Full runs require viewing the Space
API sees the wrong userCheck execution-token-identity; execution scopes add to account access
Work re-implements loginUse the platform session/SDK

Autonomy

SymptomFix
Loop forgets progressPersist runtime/state.json or a wiki log
Agent wrecked the treeSave/fork before high-autonomy work

Still stuck

  1. Product docs: https://cohub.live/docs
  2. Paths and mounts
  3. AGENT_BRIEF