refactor: remove draft agent routes and consolidate terminal output into session model

This commit is contained in:
Mohamed Boudra
2026-03-04 14:17:39 +07:00
parent b21764fd40
commit 92991ffdb8
25 changed files with 634 additions and 317 deletions
@@ -34,9 +34,9 @@ describe("keyboard-shortcut-routing", () => {
expect(canToggle).toBe(true);
});
it("allows the shortcut on draft routes", () => {
it("allows the shortcut on workspace draft-tab routes", () => {
const canToggle = canToggleFileExplorerShortcut({
pathname: "/h/server-1/new",
pathname: "/h/server-1/workspace/workspace-1/tab/draft_123",
toggleFileExplorer,
});
@@ -45,7 +45,7 @@ describe("keyboard-shortcut-routing", () => {
it("blocks the shortcut when no toggle handler exists", () => {
const canToggle = canToggleFileExplorerShortcut({
pathname: "/h/server-1/new",
pathname: "/h/server-1/workspace/workspace-1/tab/draft_123",
});
expect(canToggle).toBe(false);