-
Notifications
You must be signed in to change notification settings - Fork 547
feat: Multiple features, improvements, and bug fixes #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
joshwilhelmi
wants to merge
14
commits into
siteboon:main
Choose a base branch
from
GobbyAI:feat/token-budget-and-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
582621c
feat: Add token budget tracking and multiple improvements
joshwilhelmi e64df37
feat: Add session processing state persistence
joshwilhelmi 5a11b45
feat: Make context window size configurable via environment variables
joshwilhelmi 70f0f5e
fix: Decode HTML entities in chat message display
joshwilhelmi d3e5c96
Merge branch 'main' into feat/token-budget-and-improvements
viper151 d3736c5
refactor: Align package.json with main branch standards
joshwilhelmi 61d6676
feat: Replace CLI implementation with Claude Agents SDK
joshwilhelmi 897f893
Update server/claude-sdk.js
joshwilhelmi 5650b41
Update server/index.js
joshwilhelmi 874b757
Update src/components/ChatInterface.jsx
joshwilhelmi ec9da70
Update src/components/ChatInterface.jsx
joshwilhelmi 41558a9
Update src/components/ChatInterface.jsx
joshwilhelmi 599b388
fix: Prevent stale token-usage data from updating state on session swβ¦
joshwilhelmi 22cc118
Update src/components/TokenUsagePie.jsx
joshwilhelmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Clear Cache - Claude Code UI</title> | ||
<style> | ||
body { | ||
font-family: system-ui, -apple-system, sans-serif; | ||
max-width: 600px; | ||
margin: 50px auto; | ||
padding: 20px; | ||
line-height: 1.6; | ||
} | ||
.success { color: green; } | ||
.error { color: red; } | ||
button { | ||
background: #007bff; | ||
color: white; | ||
border: none; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
margin: 10px 5px; | ||
} | ||
button:hover { | ||
background: #0056b3; | ||
} | ||
#status { | ||
margin-top: 20px; | ||
padding: 15px; | ||
border-radius: 5px; | ||
background: #f0f0f0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Clear Cache & Service Worker</h1> | ||
<p>If you're seeing a blank page or old content, click the button below to clear all cached data.</p> | ||
|
||
<button onclick="clearEverything()">Clear Cache & Reload</button> | ||
|
||
<div id="status"></div> | ||
|
||
<script> | ||
async function clearEverything() { | ||
const status = document.getElementById('status'); | ||
status.innerHTML = '<p>Clearing cache and service workers...</p>'; | ||
|
||
try { | ||
// Unregister all service workers | ||
if ('serviceWorker' in navigator) { | ||
const registrations = await navigator.serviceWorker.getRegistrations(); | ||
for (let registration of registrations) { | ||
await registration.unregister(); | ||
status.innerHTML += '<p class="success">β Unregistered service worker</p>'; | ||
} | ||
} | ||
|
||
// Clear all caches | ||
if ('caches' in window) { | ||
const cacheNames = await caches.keys(); | ||
for (let cacheName of cacheNames) { | ||
await caches.delete(cacheName); | ||
status.innerHTML += `<p class="success">β Deleted cache: ${cacheName}</p>`; | ||
} | ||
} | ||
|
||
// Clear localStorage | ||
localStorage.clear(); | ||
status.innerHTML += '<p class="success">β Cleared localStorage</p>'; | ||
|
||
// Clear sessionStorage | ||
sessionStorage.clear(); | ||
status.innerHTML += '<p class="success">β Cleared sessionStorage</p>'; | ||
|
||
status.innerHTML += '<p class="success"><strong>β All caches cleared!</strong></p>'; | ||
status.innerHTML += '<p>Cache cleared successfully. You can now close this tab or <a href="/">go to home page</a>.</p>'; | ||
|
||
} catch (error) { | ||
status.innerHTML += `<p class="error">β Error: ${error.message}</p>`; | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.