mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
fix(tui): clarify tool grouping setting (#45470)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
5cc81a497c
commit
1c66cd7832
@@ -86,12 +86,12 @@ export const settings: Setting[] = [
|
||||
keywords: ["syntax", "concealment", "rendering"],
|
||||
},
|
||||
{
|
||||
title: "Grouping",
|
||||
title: "Tool grouping",
|
||||
category: "Session",
|
||||
path: ["session", "grouping"],
|
||||
default: "auto",
|
||||
values: ["none", "auto"],
|
||||
keywords: ["transcript", "messages"],
|
||||
keywords: ["transcript", "messages", "reads", "searches"],
|
||||
},
|
||||
{
|
||||
title: "Transcript images",
|
||||
|
||||
@@ -75,6 +75,15 @@ test("shows the TPS default in session settings", () => {
|
||||
expect(setting?.default).toBe(true)
|
||||
})
|
||||
|
||||
test("names tool grouping explicitly in settings", () => {
|
||||
expect(settings.find((setting) => setting.path.join(".") === "session.grouping")).toMatchObject({
|
||||
title: "Tool grouping",
|
||||
category: "Session",
|
||||
default: "auto",
|
||||
values: ["none", "auto"],
|
||||
})
|
||||
})
|
||||
|
||||
test("validates terminal copy behavior", () => {
|
||||
expect(decodeInfo({ terminal: { copy: "manual" } })).toEqual({ terminal: { copy: "manual" } })
|
||||
expect(decodeInfo({ terminal: { copy: "select" } })).toEqual({ terminal: { copy: "select" } })
|
||||
|
||||
Reference in New Issue
Block a user