Map thread panel into title bar and sidebar
- Add thread-panel presentation logic for inline vs popover layouts - Move thread details controls into the chat header/sidebar flow - Add shared wait-for-atom helper and workspace display name parsing Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
4d64e80184
commit
c8aea5db0b
40 files changed
+1926
-869
No files matched your search
@@ -74,10 +74,10 @@ describe("applyShellStreamEvent", () => {
|
||||
});
|
||||
|
||||
it("leaves unknown future events unchanged", () => {
|
||||
const next = applyShellStreamEvent(
|
||||
v2ShellSnapshot,
|
||||
{ kind: "future.event", sequence: 99 } as never,
|
||||
);
|
||||
const next = applyShellStreamEvent(v2ShellSnapshot, {
|
||||
kind: "future.event",
|
||||
sequence: 99,
|
||||
} as never);
|
||||
|
||||
expect(next).toBe(v2ShellSnapshot);
|
||||
});
|
||||
|
||||
@@ -42,11 +42,11 @@ it.effect("parses keybinding rules", () =>
|
||||
});
|
||||
assert.strictEqual(parsedRightPanelToggle.command, "rightPanel.toggle");
|
||||
|
||||
const parsedRightPanelToggleMaximized = yield* decode(KeybindingRule, {
|
||||
key: "mod+shift+m",
|
||||
command: "rightPanel.toggleMaximized",
|
||||
const parsedThreadPanelToggle = yield* decode(KeybindingRule, {
|
||||
key: "mod+shift+b",
|
||||
command: "threadPanel.toggle",
|
||||
});
|
||||
assert.strictEqual(parsedRightPanelToggleMaximized.command, "rightPanel.toggleMaximized");
|
||||
assert.strictEqual(parsedThreadPanelToggle.command, "threadPanel.toggle");
|
||||
|
||||
const parsedClose = yield* decode(KeybindingRule, {
|
||||
key: "mod+w",
|
||||
|
||||
@@ -47,7 +47,7 @@ export const MODEL_PICKER_KEYBINDING_COMMANDS = [
|
||||
] as const;
|
||||
export type ModelPickerKeybindingCommand = (typeof MODEL_PICKER_KEYBINDING_COMMANDS)[number];
|
||||
|
||||
export const STATIC_KEYBINDING_COMMANDS = [
|
||||
export const BUILT_IN_KEYBINDING_COMMANDS = [
|
||||
"sidebar.toggle",
|
||||
"terminal.toggle",
|
||||
"terminal.split",
|
||||
@@ -55,7 +55,7 @@ export const STATIC_KEYBINDING_COMMANDS = [
|
||||
"terminal.new",
|
||||
"terminal.close",
|
||||
"rightPanel.toggle",
|
||||
"rightPanel.toggleMaximized",
|
||||
"threadPanel.toggle",
|
||||
"diff.toggle",
|
||||
"preview.toggle",
|
||||
"preview.refresh",
|
||||
@@ -85,7 +85,7 @@ export const SCRIPT_RUN_COMMAND_PATTERN = Schema.TemplateLiteral([
|
||||
]);
|
||||
|
||||
export const KeybindingCommand = Schema.Union([
|
||||
Schema.Literals(STATIC_KEYBINDING_COMMANDS),
|
||||
Schema.Literals(BUILT_IN_KEYBINDING_COMMANDS),
|
||||
SCRIPT_RUN_COMMAND_PATTERN,
|
||||
]);
|
||||
export type KeybindingCommand = typeof KeybindingCommand.Type;
|
||||
|
||||
Reference in new issue
Block a user