Repository navigation
Keep each thread's last tool activity, and clear activity logs on logout - #2
Open
luqeckr-tech wants to merge 1 commit into
Open
luqeckr-tech wants to merge 1 commit into
luqeckr-tech wants to merge 1 commit into
Conversation
Tool Activity was a single global list, wiped on every thread switch, new thread and re-attach, so the commands of a thread's last turn could not be reviewed afterwards. It is now stored per thread in localStorage, like the process console, together with the question it answered. Calls cut off by Stop show STOPPED instead of DONE; calls left running when the operator switches threads or closes the page show TERPUTUS and mark the list incomplete (re-attaching to a run still in progress replays it in full). Both logs hold tool arguments verbatim, so they no longer outlive the session on a shared browser: logout removes them, and logging in as a different user than the one who wrote them (e.g. after a session expired) clears them, in storage and in the copy already loaded by the chat screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Tool Activity per thread. The Tool Activity panel was one global list, emptied on every thread switch, New Thread and re-attach, so the commands used in a thread's last turn could not be reviewed afterwards.
localStorage(llmnetops-tools-v1, max 30 threads), same pattern as the process console. A new send/re-attach replaces it.S.toolCountremoved; it always equalledS.tools.length.Activity logs no longer outlive the session. Tool Activity and the process console both hold tool arguments verbatim (router commands, hosts, possibly secrets), and nothing cleared them.
llmnetops-console-v2). The chat screen stops persisting until reload, so a run still streaming cannot write them back.chat.jsalready hydrated at module load. Logs with no recorded owner (written before this change) are cleared once.Not in this PR
index.htmlloadscdn.tailwindcss.comunpinned and without SRI, and nginx sets no CSP, so third-party JS on the origin can readlocalStorage. Worth a separate PR.Testing
node --checkon all changed files.localStorageimporting the real modules: same user keeps logs, different user clears them, unknown owner clears them.🤖 Generated with Claude Code