Skip to content

Install error messages list stale supported platforms #126

Description

@GautamSharma99

Summary

Some runtime install guidance still lists only the older platform set:

codex|claude|copilot|opencode

But the CLI currently accepts more install platforms:

codex|claude|copilot|opencode|openhands|factory-droid|antigravity

This makes setup/debugging confusing for users on OpenHands or Factory Droid, especially when they hit an install-related error and the
suggested recovery command omits their platform.

## Current behavior

apps/cli/main.ts advertises and parses the newer install platform list:

install --platform codex|claude|copilot|opencode|openhands|factory-droid|antigravity

But libs/storage/sqlite/repository.ts still has older hardcoded messages:

Run greplica install --platform <codex|claude|copilot|opencode> --embedding local

This appears in:

- requireRepo()
- requireWorkingScope()
- requireMainScope()

## Reproduction

From a repo where Greplica is not installed, run a graph command, for example:

greplica graph read

Observed error suggests:

Run greplica install --platform <codex|claude|copilot|opencode> --embedding local

## Expected behavior

Install recovery guidance should include all supported install platforms, or derive the platform list from a shared source so CLI usage and
runtime errors cannot drift.

## Suggested fix

- Update the stale messages in libs/storage/sqlite/repository.ts
- Prefer centralizing the supported install platform display string instead of duplicating it manually
- Add a regression check so install/platform guidance stays consistent with CLI parsing

## Acceptance criteria

- Install-related errors mention OpenHands and Factory Droid
- CLI usage and runtime recovery messages do not disagree
- A test covers the platform guidance string or error output

Activity

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