plugin: honor tmux disablement for interactive tmux features

This commit is contained in:
YeonGyu-Kim
2026-04-04 14:14:19 +09:00
parent 2d72f51a92
commit 731c3f1109
5 changed files with 71 additions and 2 deletions
+32
View File
@@ -81,3 +81,35 @@ describe("#given task_system configuration", () => {
expect(result.filteredTools).toHaveProperty("task_update")
})
})
describe("#given tmux integration is disabled", () => {
test("#when tool registry is created #then interactive_bash is not registered", () => {
const result = createToolRegistry({
ctx: { directory: "/tmp" } as Parameters<typeof createToolRegistry>[0]["ctx"],
pluginConfig: {
tmux: {
enabled: false,
layout: "main-vertical",
main_pane_size: 60,
main_pane_min_width: 120,
agent_pane_min_width: 40,
isolation: "inline",
},
},
managers: {
backgroundManager: {},
tmuxSessionManager: {},
skillMcpManager: {},
} as Parameters<typeof createToolRegistry>[0]["managers"],
skillContext: {
mergedSkills: [],
availableSkills: [],
browserProvider: "playwright",
disabledSkills: new Set(),
},
availableCategories: [],
})
expect(result.filteredTools).not.toHaveProperty("interactive_bash")
})
})