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
13 changes: 7 additions & 6 deletions apps/desktop/src/lib/trpc/routers/terminal/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ export const createTerminalRouter = () => {
return {
paneId,
isNew: result.isNew,
scrollback: result.scrollback,
wasRecovered: result.wasRecovered,
serializedState: result.serializedState,
};
}),

Expand Down Expand Up @@ -138,7 +137,6 @@ export const createTerminalRouter = () => {
.input(
z.object({
paneId: z.string(),
deleteHistory: z.boolean().optional(),
}),
)
.mutation(async ({ input }) => {
Expand All @@ -147,11 +145,14 @@ export const createTerminalRouter = () => {

/**
* Detach from terminal (keep session alive)
* Accepts serialized terminal state from renderer's SerializeAddon
* to enable clean reattachment without escape sequence issues
*/
detach: publicProcedure
.input(
z.object({
paneId: z.string(),
serializedState: z.string().optional(),
}),
)
.mutation(async ({ input }) => {
Expand All @@ -160,16 +161,16 @@ export const createTerminalRouter = () => {

/**
* Clear scrollback buffer for terminal (used by Cmd+K / clear command)
* This clears both in-memory scrollback and persistent history file
* This clears in-memory scrollback and serialized state
*/
clearScrollback: publicProcedure
.input(
z.object({
paneId: z.string(),
}),
)
.mutation(async ({ input }) => {
await terminalManager.clearScrollback(input);
.mutation(({ input }) => {
terminalManager.clearScrollback(input);
}),

getSession: publicProcedure
Expand Down
84 changes: 0 additions & 84 deletions apps/desktop/src/main/lib/data-batcher.ts

This file was deleted.

139 changes: 0 additions & 139 deletions apps/desktop/src/main/lib/terminal-escape-filter.test.ts

This file was deleted.

46 changes: 0 additions & 46 deletions apps/desktop/src/main/lib/terminal-escape-filter.ts

This file was deleted.

Loading
Loading