fix(cli): read full recall

This commit is contained in:
Alex Alecu
2026-04-03 12:07:25 +03:00
parent 29ec6e4017
commit dd571e4b8b
2 changed files with 6 additions and 6 deletions
@@ -97,12 +97,12 @@ export function DialogSessionList() {
}}
onSelect={(option) => {
const item = sessions().find((x) => x.id === option.value)
const project =
global() && item && "project" in item
? (item as { project?: { worktree?: string } | null }).project
: undefined
const cross =
global() &&
item &&
"project" in item &&
item.project?.worktree !== undefined &&
item.project.worktree !== sync.data.path.worktree
global() && item && project?.worktree !== undefined && project.worktree !== sync.data.path.worktree
if (cross) {
toast.show({
message: "Open this session from its own project",
+1 -1
View File
@@ -110,7 +110,7 @@ async function read(params: { sessionID?: string }, ctx: Tool.Context) {
})
}
const msgs = await Session.messages({ sessionID: session.id, limit: 200 })
const msgs = await Session.messages({ sessionID: session.id })
const lines: string[] = [
`# Session: ${session.title}`,
`Project: ${session.directory}`,