Conversation
danbarr
requested review from
ChrisJBurns,
JAORMX,
amirejaz,
aponcedeleonch,
jhrozek,
rdimitrov and
reyortiz3
as code owners
October 1, 2026 11:37
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6733 +/- ##
=======================================
Coverage 79.34% 79.35%
=======================================
Files 802 802
Lines 81218 81245 +27
=======================================
+ Hits 64446 64471 +25
- Misses 16767 16769 +2
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
|
Thanks, @danbarr, for opening the PR. I’ll review the changes and check the cleanup and retry cases. |
Sanskarzz
self-requested a review
October 1, 2026 12:05
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--keep-tokensfor intentional session retention and preserving tokens by default during partial targeted teardown.Fixes #6732
Type of change
Test plan
task test) — all affected LLM and CLI tests passed; the full suite remains nonzero on pre-existingpkg/plugins/pluginsvcSSRF andgit://parsing failurestask test-e2e)task lint-fix)task build)task docs)git diff --check)Changes
cmd/thv/app/llm.go--keep-tokens, fatal cleanup errors, and updated help textcmd/thv/app/llm_test.gopkg/llm/setup.gopkg/llm/setup_test.godocs/cli/thv_llm_teardown.mdDoes this introduce a user-facing change?
Yes. Full and last-tool teardown now purge cached LLM tokens by default. Users can pass
--keep-tokensto retain the session. Partial targeted teardown still retains shared tokens unless--purge-tokensis explicit.Implementation plan
Approved implementation plan
Special notes for reviewers
Token deletion is intentionally local: it does not revoke credentials at the identity provider or clear browser SSO. This PR warns users that a running LLM proxy or token helper can recreate credentials; automatically stopping those processes is deferred.