Skip to content

fix(ls): track savings against the user baseline - #3075

Closed
lntutor wants to merge 1 commit into
rtk-ai:developfrom
lntutor:fix/561-ls-tracking-baseline
Closed

lntutor wants to merge 1 commit into
rtk-ai:developfrom
lntutor:fix/561-ls-tracking-baseline

Conversation

@lntutor

@lntutor lntutor commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • capture the exact plain ls invocation separately from the enriched ls -la command used for filtering
  • add an explicit baseline option to the shared captured-command runner
  • keep enriched output for parsing and never-worse display guards while using the plain output only for telemetry
  • record the original command as ls plus the user-provided arguments instead of the internal command
  • fall back to existing tracking behavior if the baseline command cannot be captured successfully

Fixes #561

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features (2,498 passed, 8 ignored)
  • cargo build --release --all-features
  • isolated live telemetry check recorded original_cmd as ls src/cmds/system, rtk_cmd as rtk ls src/cmds/system, and 44 input tokens rather than the enriched ls -la output

@CLAassistant

CLAassistant commented Jul 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot rtk-release-bot Bot added the stale label Nov 2, 2026
@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

@rtk-release-bot rtk-release-bot Bot closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: ls tracking baseline should compare against ls not ls -la

2 participants