Skip to content

Managed Environment: refusing a second project surfaces as internal_error instead of its reason #128

Open

Description

@immakermatty

What happens

On a managed Lazurio Environment, t3 project add <folder> refuses any folder other than the Lazurio Folder. That refusal is intended. The CLI reports it as an internal server error, though:

ProjectLiveServerDeclaredResponseError: Server request failed (internal_error, trace …).
  [cause]: EnvironmentInternalError: The environment failed to answer this request (project_mutation_failed).

The real reason is only in the server trace: ProjectOperationError … cause: "In this Environment, the Lazurio project is the Lazurio Folder itself."

Seen on 0.1.2-preview.20261025.1 on 2026-10-25, on a Ring 0 Environment.

Why it matters

A person or agent reading "internal_error" assumes the server is broken, then retries or files a bug, when the Environment is working as designed. The same refusal probably reaches the app's Add project flow and the MCP t3_project_create tool through the same project mutation. Check those as well.

Expected

  • The refusal arrives as a declared, non-internal error that carries its reason, for example "In this Environment, the Lazurio project is the Lazurio Folder itself."
  • The CLI, the app and the MCP tool show that reason.
  • A test covers the managed-folder refusal on the project mutation path.

Activity

  1. immakermatty commented on Nov 18, 2026

    @immakermatty
    Author

    One more case of the same refusal, seen during acceptance of the preview 0.1.9-preview.20261118.1 (2026-11-18): t3 project add ~/Buddy in a managed Environment shows internal_error with a stack trace in the CLI instead of the guard's sentence ("In this Environment, the Lazurio project is the Lazurio Folder itself.").

    With T3CODE_LAZURIO_BUDDY_FOLDER set (#214), Buddy's project already exists, so the CLI's own pre-check answers ProjectAlreadyExistsError first. A clean fix still belongs here: map ProjectOperationError from the managed-Folder guard to a declared response with its cause.

    Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · T3 thread 72068f77-568a-48aa-aa8a-108c03b29972

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions