mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(cli): read full recall
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user