Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/agent-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ consumption of shared panel shells:
| A6.195 | Remove session + next active id |
| A6.196 | Maybe auto-derive untitled session title |
| A6.197 | Cut transcript through Nth user turn |
| A6.198 | Desktop workspacePath via sessionWorkspacePathForId |

### A5 complete enough

Expand Down
3 changes: 2 additions & 1 deletion src/modules/ai/store/chatStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
maybeDeriveSessionTitleList,
cutThroughNthUserMessage,
joinMessageTextParts,
sessionWorkspacePathForId,
} from "@altai/agent-ui";
import type { UIMessage } from "ai";
import { native } from "../lib/native";
Expand Down Expand Up @@ -1135,7 +1136,7 @@ function workspacePathForChat(chatId?: string | null): string | undefined {
const state = useChatStore.getState();
const id = chatId ?? state.activeSessionId;
if (!id) return undefined;
return state.sessions.find((session) => session.id === id)?.workspacePath ?? undefined;
return sessionWorkspacePathForId(state.sessions, id);
}

export function activeSessionWorkspacePath(): string | null {
Expand Down
Loading