Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): Labs toggle keeps 5h, weekly, and context limits in view #26859

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/26859/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 8 changed files with 6 additions and 0 deletions (loading 6).

x
0 of 8 viewed, 8 left
1 addition and 0 deletionsapps/desktop/src/settings/DesktopClientSettings.test.tsModified
View file
@@ -64,6 +64,7 @@
sidebarThreadSortOrder: "created_at",
boringSidebarEnabled: false,
boringSidebarMultilineRows: false,
+ threadDetailsUsageEnabled: false,
legacySidebarEnabled: false,
sidebarWorkingShelfEnabled: false,
loadBalancingEnabled: false,
5 additions and 0 deletionsapps/web/src/components/chat/ThreadDetailsPanel.tsxModified
View file
@@ -23,6 +23,7 @@
import { ThreadAutomationsPanel } from "./ThreadAutomationsPanel";
import { ThreadRelationshipsPanel } from "./ThreadRelationshipsControl";
import { ThreadServersPanel } from "./ThreadServersPanel";
+import { ThreadDetailsUsage, type ThreadDetailsUsageInput } from "./ThreadDetailsUsage";
​
const GitActionsControl = memo(BaseGitActionsControl);
​
@@ -67,6 +68,8 @@
input: NewProjectScriptInput,
) => Promise<ProjectScriptActionResult>;
onDeleteProjectScript: (scriptId: string) => Promise<ProjectScriptActionResult>;
+ /** Set only while the Labs usage readout is on. */
+ usage?: ThreadDetailsUsageInput | undefined;
​
export function ThreadDetailsPanel(props: ThreadDetailsPanelProps) {