Skip to content

[Bug] L: .toolrc.local cached feature flags go stale when the environment changes #49

Description

@fissible

Source: external review report, 2026-08-24 (severity: Low)

Problem

Feature-detection results (e.g. SHELLFRAME_TPUT_OK=0) are cached in .toolrc.local. Once cached, they persist after the environment changes — install tput later and shellframe keeps running in the degraded path until someone knows to delete the file.

What it needs

Pick one:

  • Invalidate on a cheap fingerprint — store $BASH_VERSION, $TERM, and command -v tput path alongside the flags; re-detect when any differ
  • TTL — re-detect if the file is older than N days
  • Escape hatch at minimumSHELLFRAME_REDETECT=1 env var and a documented rm .toolrc.local in README troubleshooting

Recommend fingerprint + documented escape hatch.

Tests

  • Unit: write a cache with a different TERM, source the loader → re-detection runs

Effort: XS
Deps: none

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions