Skip to content

nit: Give helpful error messages for commands (e.g. linear issue list) when linear config is not ran. #81

Open

Description

@aderk

Current behavior (before successful linear config):

[I] ad@Alans-MacBook-Pro ~/c/prophetic-alder (alder)> linear issue list
Sort must be provided via command line flag, configuration file, or LINEAR_ISSUE_SORT environment variable
[I] ad@Alans-MacBook-Pro ~/c/prophetic-alder (alder) [1]> linear issue start
Could not determine team ID

Desired behavior:
A helpful error message including something like "Do you need to run linear config?"

Activity

  1. schpet commented on Dec 16, 2025

    @schpet
    Owner

    yes: thanks for pointing this out!

    i'll note that this cli works unconfigured as well - which will require a --team flag IIRC) so message might need to cover that use case as well.

  2. ramnes commented on May 21, 2026

    @ramnes

    I don't understand why it works outside my repos but doesn't inside one. It doesn't make any sense to me that this CLI requires a repo-specific config or doesn't run. Can we just make it optional?

    (edit: FWIW I use dorkitude/linctl now and it suits my agents and me much better)

  3. schpetbot commented on Jul 17, 2026

    @schpetbot
    Collaborator

    Partly addressed: 7097624 ("Point config suggestions at the real linear config command") wired config suggestions to the real command, and the team-not-set path now suggests running linear config (src/utils/linear.ts:106).

    Leaving open for the exact first symptom reported here — linear issue list's "Sort must be provided" error (src/utils/linear.ts:576) still doesn't mention linear config. The remaining work is to add the config hint to that (and the "Could not determine team ID") path.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions