Merge remote-tracking branch 'origin/main' into fix/credential-failure-ux
This commit is contained in:
@@ -226,8 +226,12 @@ function createPreCompactHook(assistantName?: string): HookCallback {
|
|||||||
/**
|
/**
|
||||||
* Claude Code auto-compacts context at this window (tokens). Kept here so
|
* Claude Code auto-compacts context at this window (tokens). Kept here so
|
||||||
* the generic bootstrap doesn't need to know about Claude-specific env vars.
|
* the generic bootstrap doesn't need to know about Claude-specific env vars.
|
||||||
|
*
|
||||||
|
* Operator override: set CLAUDE_CODE_AUTO_COMPACT_WINDOW in the host env to
|
||||||
|
* raise or lower the threshold without editing source — useful when running
|
||||||
|
* with a 1M-context model variant or when emergency-tuning a deployment.
|
||||||
*/
|
*/
|
||||||
const CLAUDE_CODE_AUTO_COMPACT_WINDOW = '165000';
|
const CLAUDE_CODE_AUTO_COMPACT_WINDOW = process.env.CLAUDE_CODE_AUTO_COMPACT_WINDOW || '165000';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stale-session detection. Matches Claude Code's error text when a
|
* Stale-session detection. Matches Claude Code's error text when a
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nanoclaw",
|
"name": "nanoclaw",
|
||||||
"version": "2.0.15",
|
"version": "2.0.16",
|
||||||
"description": "Personal Claude assistant. Lightweight, secure, customizable.",
|
"description": "Personal Claude assistant. Lightweight, secure, customizable.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "pnpm@10.33.0",
|
"packageManager": "pnpm@10.33.0",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="90" height="20" role="img" aria-label="133k tokens, 67% of context window">
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="90" height="20" role="img" aria-label="134k tokens, 67% of context window">
|
||||||
<title>133k tokens, 67% of context window</title>
|
<title>134k tokens, 67% of context window</title>
|
||||||
<linearGradient id="s" x2="0" y2="100%">
|
<linearGradient id="s" x2="0" y2="100%">
|
||||||
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
|
||||||
<stop offset="1" stop-opacity=".1"/>
|
<stop offset="1" stop-opacity=".1"/>
|
||||||
@@ -15,8 +15,8 @@
|
|||||||
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
|
<g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" font-size="11">
|
||||||
<text aria-hidden="true" x="26" y="15" fill="#010101" fill-opacity=".3">tokens</text>
|
<text aria-hidden="true" x="26" y="15" fill="#010101" fill-opacity=".3">tokens</text>
|
||||||
<text x="26" y="14">tokens</text>
|
<text x="26" y="14">tokens</text>
|
||||||
<text aria-hidden="true" x="71" y="15" fill="#010101" fill-opacity=".3">133k</text>
|
<text aria-hidden="true" x="71" y="15" fill="#010101" fill-opacity=".3">134k</text>
|
||||||
<text x="71" y="14">133k</text>
|
<text x="71" y="14">134k</text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user