Elffuss BraidHub

kikocis/continue public

update context status copy
Changesetfd84b2d5fd918e5d96aee7a4f6bed51935ee20ce48894349b2978c6b72428d0d
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-18 09:51 +02:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-07-18 09:51 +02:00
Parents3efc28c9fe46

Browse the files at this changeset

1 file changed

modified gui/src/components/mainInput/ContextStatus.tsx +24 −16
@@ -33,30 +33,38 @@
3333 clickable
3434 >
3535 <div className="flex flex-col gap-0">
36- <span> {`${percent}% of context filled`}</span>
37- {isPruned && <span>Old messages are being removed</span>}
38- {history.length > 0 && (
39- <span
40- className="cursor-pointer underline"
41- onClick={() => {
42- dispatch(
43- saveCurrentSession({
44- openNewSession: true,
45- generateTitle: false,
46- }),
47- );
48- }}
49- >
50- New Session
36+ <span className="inline-block">
37+ {`${percent}% of context filled`}
38+ </span>
39+ {isPruned && (
40+ <span className="inline-block">
41+ {`Oldest messages are being removed`}
5142 </span>
5243 )}
44+ {history.length > 0 && (
45+ <div>
46+ <span className="inline-block">Start a</span>{" "}
47+ <span
48+ className="inline-block cursor-pointer underline"
49+ onClick={() => {
50+ dispatch(
51+ saveCurrentSession({
52+ openNewSession: true,
53+ generateTitle: false,
54+ }),
55+ );
56+ }}
57+ >
58+ New Session
59+ </span>
60+ </div>
61+ )}
5362 </div>
5463 </Tooltip>
5564 <div
5665 data-tooltip-id="context-status"
5766 className="border-description-muted relative h-[10px] w-[5px] rounded-[1px] border-[0.5px] border-solid"
5867 >
59- {/* <div className="absolute bottom-full left-1/4 h-[1px] w-1/2 border-[0.5px] border-solid" /> */}
6068 <div
6169 className={`transition-height absolute bottom-0 left-0 w-full duration-300 ease-in-out ${barColorClass}`}
6270 style={{ height: `${percent}%` }}