@saadnvd1/agent-os 0.3.614 → 0.3.615
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -370,7 +370,7 @@ export function ChatPanel({
|
|
|
370
370
|
send(text);
|
|
371
371
|
};
|
|
372
372
|
// A chat past the compact threshold compacts before the next message
|
|
373
|
-
// unless the reader picks "
|
|
373
|
+
// unless the reader picks "Skip once", for that send only.
|
|
374
374
|
const compactTokens = useFreshStartQuery().data?.compactTokens ?? 0;
|
|
375
375
|
const [asIsFor, setAsIsFor] = useState<string | null>(null);
|
|
376
376
|
const asIs = asIsFor === sessionId;
|
|
@@ -9,7 +9,7 @@ import { useNow } from "./useNow";
|
|
|
9
9
|
// Above the composer while the chat is due a compaction (lib/chat/stale):
|
|
10
10
|
// its context is past the compact threshold, and maybe its prompt cache has
|
|
11
11
|
// expired too, so the next message would re-read all of it at full price.
|
|
12
|
-
// Send compacts first unless the reader picks "
|
|
12
|
+
// Send compacts first unless the reader picks "Skip once", for that one
|
|
13
13
|
// send only.
|
|
14
14
|
export function StaleChip({
|
|
15
15
|
context,
|
|
@@ -37,7 +37,7 @@ export function StaleChip({
|
|
|
37
37
|
<span className="text-muted-foreground min-w-0 flex-1 truncate">
|
|
38
38
|
{staleLabel(stale)} ·{" "}
|
|
39
39
|
<span className="text-foreground">
|
|
40
|
-
{asIs ? "
|
|
40
|
+
{asIs ? "Next send skips compacting" : "Compacts when you send"}
|
|
41
41
|
</span>
|
|
42
42
|
</span>
|
|
43
43
|
<button
|
|
@@ -49,7 +49,7 @@ export function StaleChip({
|
|
|
49
49
|
asIs && "text-primary"
|
|
50
50
|
)}
|
|
51
51
|
>
|
|
52
|
-
{asIs ? "
|
|
52
|
+
{asIs ? "Undo" : "Skip once"}
|
|
53
53
|
</button>
|
|
54
54
|
</div>
|
|
55
55
|
);
|
package/lib/chat/stale.ts
CHANGED
|
@@ -78,7 +78,7 @@ export function staleLabel(s: Staleness): string {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// Whether the composer's send compacts first: the chip was showing and the
|
|
81
|
-
// reader didn't pick "
|
|
81
|
+
// reader didn't pick "Skip once". A slash command goes as typed.
|
|
82
82
|
export function composerCompacts(
|
|
83
83
|
text: string,
|
|
84
84
|
context: ChatContext | null | undefined,
|