-
Notifications
You must be signed in to change notification settings - Fork 417
Open
Description
agent diagnostic
- loaded
openshell-cliskill — checkedsandbox create --helpfor--force/--replace/--overwriteflags; none exist - loaded
debug-openshell-clusterskill — cluster is healthy (openshell statusandopenshell doctor checkboth pass) - confirmed workaround:
sandbox delete <name>thensandbox create --name <name>works, but the error message gives no hint to do this - agent cannot resolve: the error originates in the grpc server layer — sqlite unique constraint error (code 2067) is surfaced as a raw
internalgrpc status instead of being caught and mapped toalreadyexistswith a human-readable message. this requires a server-side code change in the persist layer or grpc handler.
description
actual behavior: creating a sandbox with a name that already exists returns a raw internal error exposing sqlite internals and grpc metadata:
error: × status: Internal, message: "persist sandbox failed: execution error:
database error: error returned from database: (code: 2067) UNIQUE
constraint failed: objects.object_type, objects.name", details: [],
metadata: MetadataMap { headers: {"content-type": "application/grpc",
"date": "Mon, 30 Mar 2026 23:51:20 GMT"} }
expected behavior: a clear, actionable error like:
error: sandbox 'dupe-test' already exists
hint: delete it first with: openshell sandbox delete dupe-test
or use a different name
reproduction steps
openshell sandbox create --name dupe-test --no-tty -- sleep 120 &- wait for sandbox to reach
readyphase (openshell sandbox list) openshell sandbox create --name dupe-test --no-tty -- echo "second"- observe raw database error instead of "already exists" message
environment
- os: macos 26.3.1 (darwin, apple silicon)
- docker: docker desktop 29.2.1
- openshell: v0.0.6
logs
$ openshell sandbox create --name dupe-test --no-tty -- echo "second"
Error: × status: Internal, message: "persist sandbox failed: execution error:
│ database error: error returned from database: (code: 2067) UNIQUE
│ constraint failed: objects.object_type, objects.name", details: [],
│ metadata: MetadataMap { headers: {"content-type": "application/grpc",
│ "date": "Mon, 30 Mar 2026 23:51:20 GMT"} }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels