summaryrefslogtreecommitdiff
path: root/packages/core/src
diff options
context:
space:
mode:
authorchristine betts <[email protected]>2025-07-21 17:54:37 +0000
committerGitHub <[email protected]>2025-07-21 17:54:37 +0000
commit9bdcdf97d883d860a1552a5da5b890e8a7ec6b8a (patch)
tree1c40835626074929fd84652a619e8e2696eb5f07 /packages/core/src
parent45b764943ae9dd2d5f18ece0aaa13f84eaa4ad5c (diff)
[ide-mode] Keep track of recently-opened files and send them to the CLI (#4463)
Diffstat (limited to 'packages/core/src')
-rw-r--r--packages/core/src/services/ideContext.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/core/src/services/ideContext.ts b/packages/core/src/services/ideContext.ts
index b5f0b4af..0aab1e8d 100644
--- a/packages/core/src/services/ideContext.ts
+++ b/packages/core/src/services/ideContext.ts
@@ -26,6 +26,14 @@ export type Cursor = z.infer<typeof CursorSchema>;
export const ActiveFileSchema = z.object({
filePath: z.string(),
cursor: CursorSchema.optional(),
+ recentOpenFiles: z
+ .array(
+ z.object({
+ filePath: z.string(),
+ timestamp: z.number(),
+ }),
+ )
+ .optional(),
});
export type ActiveFile = z.infer<typeof ActiveFileSchema>;