You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 962786f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(chat): open and close Project file tabs by their owner (#9160)
* fix(chat): open and close Project file tabs by their owner
Closing a Project-owned file tab dropped its owner, so the removal request
never matched the server's owner-keyed tab and a history refresh restored
it. Tab removal, the persistence queue, and the selection reset now take
one ChatResourceAddress and match it through getChatResourceKey; the
DELETE body carries the owner. Workspace tabs key exactly as before.
A Project file tab borrowed the chat's workspace and showed 'File not
found' or 'no workspace address'. It now renders a read-only FileViewer
fed by the Project file routes, with no workspace-only tab actions.
* fix(chat): remove tabs by their stored address and refresh open Project files
Tab removal matches through the chat-scoped key that adding uses, then
removes, un-queues, and deletes the stored tab, so a caller that names a
workspace tab by type and id alone deletes it with its workspace. The
persistence queue keys with the same chat-workspace fallback.
A Project file upsert in the stream now refetches the open Project file
view's record and bytes. Also drops a stale title argument to
isEphemeralResource.
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-resources-context/mothership-resources-context.tsx
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/resource-content.tsx
+55-14Lines changed: 55 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ import type { FilePreviewSession } from '@/lib/mothership/request/session'
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs/resource-tabs.tsx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,7 @@ export function ResourceTabs({
0 commit comments