[ide-mode] Keep track of recently-opened files and send them to the CLI (#4463)

This commit is contained in:
christine betts
2025-07-21 17:54:37 +00:00
committed by GitHub
parent 45b764943a
commit 9bdcdf97d8
8 changed files with 337 additions and 10 deletions

View File

@@ -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>;