Skip to content

[BUG] [v0.0.7] cortex config has unset subcommand but cortex workspace lacks it — no way to remove workspace config keys #52468

Description

@josephadamsdev

Project

cortex

Description

cortex config provides get, set, and unset subcommands for managing global configuration. However, the sibling cortex workspace command only provides set (plus show, init, edit) — it has no unset subcommand. Once a workspace configuration key is set via cortex workspace set, it cannot be removed through the workspace CLI. The user must manually edit the TOML file or use workspace edit to open an editor.

This is a command parity inconsistency: both config and workspace manage TOML configuration files, but config supports full CRUD (get/set/unset) while workspace only supports create/update (set).

Error Message

# config unset works:
[OK] Removed key: demo_key

# workspace unset does not exist:
error: unrecognized subcommand 'unset'

Debug Logs

System Information

macOS 15.4, cortex v0.0.7

Screenshots

workspace_unset

Steps to Reproduce

  1. Run cortex config set demo_key demo_value[OK] Set demo_key = demo_value
  2. Run cortex config unset demo_key[OK] Removed key: demo_key — works correctly
  3. Run cortex workspace unset demo_keyerror: unrecognized subcommand 'unset'
  4. config supports unset but workspace does not — no way to remove a workspace key via CLI

Expected Behavior

cortex workspace should provide an unset subcommand matching cortex config unset, allowing users to remove workspace configuration keys without manually editing the TOML file.

Actual Behavior

cortex workspace unset is not recognized. Users who set a workspace key via cortex workspace set have no CLI command to remove it, unlike cortex config which supports the full get/set/unset lifecycle.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideIssues related to IDEvalidValid issue

    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