Skip to content

fix(pi): report Pi's ConversationIdle and StorageRequestError to clients as user errors - #426

Merged
eersnington merged 1 commit into
stack/feat-pi-pi-1-7from
stack/fix-pi-typed-errors
Dec 3, 2026
Merged

eersnington merged 1 commit into
stack/feat-pi-pi-1-7from
stack/fix-pi-typed-errors

Conversation

@eersnington

Copy link
Copy Markdown
Member

Sends Pi Durable's ConversationIdle and StorageRequestError to clients as a UserError with Pi's error name as the code, as ConversationBusy already is. Before, a client got An internal error occurred for its own mistake.

Call Code Metadata
whenIdle: "reject" input on an idle conversation ConversationIdle conversationId
A cursor storage cannot read StorageRequestError n/a
  • Matches with instanceof on Pi's exported classes, not on message text.
  • Pi's plain RangeErrors for bad input stay internal errors. Pi has no typed error for them.

This is part 6 of 10 in a stack:

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

📟 Pip-Boy · d296501

📦 Packages · fresh npm install resolve, no lockfile · this PR vs base

No notable install size, dependency, or entrypoint changes across 10 packages.

All 10 packages · linux-x64-gnu
package (linux-x64-gnu) @latest base this PR Δ vs base packages
@rivet-dev/pi 405.8 MB 406.6 MB 406.6 MB +638 B (+0.0%) 227 (0)
@rivet-dev/sandbox-adapter 114.5 KB 114.5 KB 114.5 KB 0 1 (0)
@sandbox-agent/cli-shared 27.2 KB 27.2 KB 27.2 KB 0 1 (0)
@sandbox-agent/persist-indexeddb 12.4 KB 12.4 KB 12.4 KB 0 1 (0)
@sandbox-agent/persist-postgres 12.3 KB 12.3 KB 12.3 KB 0 1 (0)
@sandbox-agent/persist-rivet 12.2 KB 12.2 KB 12.2 KB 0 1 (0)
@sandbox-agent/persist-sqlite 12.3 KB 12.3 KB 12.3 KB 0 1 (0)
@sandbox-agent/react 41.6 MB 41.9 MB 41.9 MB 0 15 (0)
acp-http-client 6.7 MB 6.7 MB 6.7 MB 0 3 (0)
sandbox-agent 30.9 MB 30.9 MB 30.9 MB 0 8 (0)

🧹 Rust dependencies

Skipped: this PR doesn't change any Rust code or dependencies.

🦀 Binaries

Skipped: this PR doesn't change any Rust code.

⏱ Timing

job wall time slowest step
zizmor 17s checkout · 10s
changes 23s checkout · 18s
footprint 2m45s Run pnpm --dir sandbox-agent install --frozen-lockfile · 54s
⏭ hygiene — skipped
⏭ native · ${{ matrix.platform }} — skipped
⏭ self-test — skipped
report 30s checkout · 10s
🔭 Full CI trace for this commit

One OpenTelemetry trace of CI and Pip-Boy for d296501: every job and step, with the sizes above attached. Run after CI finishes.

pnpm install --frozen-lockfile --filter 'pipboy...'
pnpm --filter pipboy pipboy trace --sha d296501d797aae030f52c0e82cbf0b2acd4cfa6b

Add --otlp <url> to send it to any OTLP/HTTP collector.

Agent instruction: From a rivet-dev/agents checkout, run the commands above, then read the trace file the last command prints. List the slowest jobs and steps and explain where CI time went.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant