Compare commits

...

6 Commits

Author SHA1 Message Date
Tomasz Stefaniak
91b9f7924b Merge pull request #6721 from continuedev/patrick/con-2826-dev-data-rule-slug
feat: add `slug` to rule obj on dev data
2025-07-22 10:49:06 -07:00
Tomasz Stefaniak
2d3f99767d Merge pull request #6739 from continuedev/tomasz/compaction-fixes
Tomasz/compaction fixes
2025-07-22 10:11:42 -07:00
Tomasz Stefaniak
d47c1f5b4d improv: ui 2025-07-21 09:18:35 -07:00
Tomasz Stefaniak
7a43ce58ed improv: ui 2025-07-21 09:17:24 -07:00
Tomasz Stefaniak
8b44a468a6 improv: ui 2025-07-21 09:10:15 -07:00
Patrick Erichsen
bcc8c5264d feat: add slug to rule obj on dev data 2025-07-19 15:31:08 -07:00
3 changed files with 8 additions and 11 deletions

View File

@@ -17,11 +17,7 @@ const ContextStatus = () => {
return null;
}
const barColorClass = isPruned
? "bg-error"
: percent > 80
? "bg-warning"
: "bg-description";
const barColorClass = isPruned ? "bg-error" : "bg-description";
return (
<div>
@@ -35,28 +31,27 @@ const ContextStatus = () => {
}}
clickable
>
<div className="flex flex-col gap-0 text-xs">
<div className="flex flex-col gap-0 text-left text-xs">
<span className="inline-block">
{`${percent}% of context filled`}
{`${percent}% of context filled.`}
</span>
{isPruned && (
<span className="inline-block">
{`Oldest messages are being removed`}
{`Oldest messages are being removed.`}
</span>
)}
{history.length > 0 && (
<div className="flex flex-col gap-1 whitespace-pre">
<div>
<span
className="inline-block cursor-pointer underline"
className="hover:text-link inline-block cursor-pointer underline"
onClick={() => compactConversation(history.length - 1)}
>
Compact conversation
</span>
{"\n"}
<span className="inline-block">or</span> {"\n"}
<span
className="inline-block cursor-pointer underline"
className="hover:text-link inline-block cursor-pointer underline"
onClick={() => {
dispatch(
saveCurrentSession({

View File

@@ -253,6 +253,7 @@ export const streamNormalInput = createAsyncThunk<
rules: appliedRules.map((rule) => ({
id: getRuleId(rule),
rule: rule.rule,
slug: rule.slug,
})),
}),
},

View File

@@ -13,6 +13,7 @@ export const chatInteractionEventAllSchema = baseDevDataAllSchema.extend({
z.object({
id: z.string(),
rule: z.string(),
slug: z.string().optional(),
}),
)
.optional(),