Skip to content

[BUG] [v0.0.7] cortex plugin new --advanced generates Cargo.toml identical to basic template — missing dependencies for TUI hook features used in advanced lib.rs #53504

Description

@lucaserevo

Project

cortex

Description

cortex plugin new --advanced generates an advanced lib.rs that references TUI hook APIs (for example widget registration patterns), but the generated Cargo.toml is byte-for-byte identical to the basic plugin template. Advanced code may imply additional dependencies or at least a different dependency story; as written, developers get no signal in the manifest about what is required versus provided by the host runtime. This creates onboarding friction and makes it harder to understand whether the scaffold is supposed to compile as-is in isolation.

Error Message

Debug Logs

System Information

Ubuntu 24.04 / 0.0.7

Screenshots

https://github.com/springoliver/bounty_challenge_report_image/blob/main/49110.png

Steps to Reproduce

  1. Open a terminal in a repo where cortex is configured.
  2. Run cortex plugin new --advanced.
  3. Compare output/behavior with the issue narrative for this ID.

Expected Behavior

The reporter expects cortex to match documented CLI/TUI contracts for this flow—correct output, honest flags/help, and no silent contradictions—consistent with the problem statement at the top of this rewrite.

Actual Behavior

cortex plugin new --advanced generates an advanced lib.rs that references TUI hook APIs (for example widget registration patterns), but the generated Cargo.toml is byte-for-byte identical to the basic plugin template. Advanced code may imply additional dependencies or at least a different dependency story; as written, developers get no signal in the manifest about what is required versus provided by the host runtime. This creates onboarding friction and makes it harder to understand whether the scaffold is supposed to compile as-is in isolation.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvalidThis doesn't seem right

    Type

    No type
    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