Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): deleting the open thread no longer opens a side chat or subagent #30370

Mergedspoukyii(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/30370/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 28 additions and 3 deletions.

x
0 of 2 viewed, 2 left
22 additions and 1 deletionapps/web/src/components/Sidebar.logic.test.tsModified
View file
@@ -636,7 +636,28 @@
{ snoozedUntil: "2099-01-01T00:00:00.000Z", snoozedAt: "2026-03-09T10:06:00.000Z" },
["settled", { settledOverride: "settled", settledAt: "2026-03-09T10:06:00.000Z" }],
- ] as const)("skips a %s thread parked on its shelf", (_state, parked) => {
+ [
+ "side chat",
+ {
+ lineage: {
+ rootThreadId: ThreadId.make("thread-visible"),
+ parentThreadId: ThreadId.make("thread-visible"),
+ relationshipToParent: "fork",
+ sideChat: true,
+ },
+ },
+ ],
+ [
+ "subagent",
+ {
+ lineage: {
+ rootThreadId: ThreadId.make("thread-visible"),
+ parentThreadId: ThreadId.make("thread-visible"),
+ relationshipToParent: "subagent",
+ },
+ },
+ ],
+ ] as const)("skips a %s thread the sidebar does not list", (_state, parked) => {
const fallbackThreadId = getFallbackThreadIdAfterDelete({
threads: [
makeThread({