Skip to content

fix(provider): a blank field in altimate.json prints a raw validation error on every run #1903

In review

Description

@sahrizvi

Found in the end-to-end check of the published v0.12.13 npm package. A side effect of #1835 fix(provider): a blank Altimate key is not a sign-in.

Repro: set "altimateInstanceName": "" (or "altimateApiKey": "") in ~/.altimate/altimate.json. In a project not linked to a workspace, run altimate run "reply with the word ok".

Observed: on every run:

Workspace link could not be read: the workspace link could not be read ([  {    "code": "custom",    "path": [      "altimateInstanceName"    ],    "message": "must not be blank"  }]); it is read again next turn.

The reply then comes from Altimate Base.

Expected: a blank field means signed out, so the run behaves as it does with no altimate.json, which prints no warning. If a line is shown, a plain one such as "Altimate sign-in is incomplete; sign in again", without Zod JSON.

Cause: getCredentials() now throws on a blank field, and refuseUnreadableLink in engine-overlay.ts treats that as an unreadable workspace link and prints the error as-is.

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

Metadata

Metadata

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