Skip to content

enhancement: auto-fix auth.toml permissions + create global config on first run #187

Description

@ajianaz

Description

Two UX friction points on fresh install:

  1. auth.toml is created with 644 permissions — should be 600. A warning is shown but no auto-fix.
  2. No ~/.cora/config.yaml is created on first run — defaults to OpenAI without telling the user.

Expected Behavior

  1. After writing auth.toml, auto-chmod to 600
  2. cora init or first cora review should create ~/.cora/config.yaml with sensible defaults
  3. Show clear setup instructions if no provider is configured

Current Workaround

mkdir -p ~/.cora
chmod 600 ~/.cora/auth.toml
cat > ~/.cora/config.yaml << EOF
provider:
  provider: zai
  model: glm-5.1
  base_url: https://api.z.ai/api/coding/paas/v4
EOF

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions