Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): continue conversations in new threads #8452

Closedalexandros-lekkas(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/8452/headopened View on GitHub

Showing 9 changed files with 58 additions and 1 deletion (loading 6).

x
0 of 9 viewed, 9 left
34 additions and 0 deletionsapps/web/src/components/Sidebar.tsxModified
View file
@@ -111,6 +111,7 @@
import { environmentServerConfigsAtom, primaryServerKeybindingsAtom } from "../state/server";
import { vcsEnvironment } from "../state/vcs";
import { threadEnvironment } from "../state/threads";
+import { continueThreadInNewDraft } from "../threadContinuation";
import { useEnvironmentQuery } from "../state/query";
import { useAtomCommand } from "../state/use-atom-command";
import {
@@ -3078,6 +3079,7 @@
api.contextMenu.show(
buildThreadActionMenuItems({
branch: thread.branch ?? null,
+ hasConversation: thread.latestUserMessageAt !== null,
isPinned,
isSettled,
isSnoozed,
@@ -3105,6 +3107,38 @@
return;
switch (clicked.value) {
+ case "continue-in-new-thread": {
+ const result = await continueThreadInNewDraft({
+ threadRef,
+ createDraft: () =>
+ handleNewThreadRef.current(
+ scopeProjectRef(thread.environmentId, thread.projectId),
+ {
+ branch: thread.branch,