Skip to content

refactor(tui): remove the nori-config cargo feature (slice C)#523

Open
CSRessel wants to merge 1 commit into
refactor/core-dead-weightfrom
refactor/drop-nori-config-feature
Open

refactor(tui): remove the nori-config cargo feature (slice C)#523
CSRessel wants to merge 1 commit into
refactor/core-dead-weightfrom
refactor/drop-nori-config-feature

Conversation

@CSRessel

@CSRessel CSRessel commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Slice C of docs/specs/crate-layering.md §6 (stacked on #522). +5/−139.

The nori-config feature was default-on and is the shipped binary's only config path; the not(nori-config) branches were the dead legacy codex-config fallback. This removes the feature entirely:

  • 6 not() blocks deleted (legacy ~/.codex config path, feature-gated /settings/browse stubs)
  • 101 positive #[cfg(feature = "nori-config")] gates unwrapped to unconditional code
  • Feature dropped from tui/Cargo.toml (default = ["login"] now)
  • Stale comments fixed; .nori-config.json references untouched (different subsystem — skillsets file)

No consumer builds nori-tui with --no-default-features (checked cli, justfiles, workflows).

Validation

  • cargo check --workspace --all-targets clean on first pass
  • cargo test -p nori-tui: 1,347 passed, zero snapshot changes (unwrap was behavior-neutral)
  • cargo test -p tui-pty-e2e: 29 passed
  • Close-the-loop TUI drive (elizacp): prompt → input → prompt
  • just fmt / just fix -p nori-tui clean
    🤖 Generated with Nori

Co-Authored-By: Nori contact@tilework.tech

The feature was default-on and the shipped binary's only config path; the
not(nori-config) branches were a dead legacy codex-config fallback. Config
source is now unconditional (~/.nori/cli/config.toml via nori-acp), removing
a compile-time API-boundary switch.

Slice C of docs/specs/crate-layering.md §6.
@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant