docs(spec): describe tool selection by row key, not name
`v2_ux_interfaces.md` and `v2_storage.md` still prescribed `selectedName` / `selectedToolName` and `tools.find(t => t.name === …)` — the exact shape that made a duplicated tool name uninspectable. Point them at `toolRowKey` / `findToolByRowKey` and note the split between UI identity (the row key, carried by `onSelectTool`) and wire identity (the protocol name, carried by `onCallTool`). Follow-up to #2001 review feedback. Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
63b37e05ec
commit
3b995f6658
1 changed files with 8 additions and 5 deletions
|
|
@ -304,7 +304,9 @@ interface LogsDisplayActions {
|
|||
```typescript
|
||||
interface ExecutionFormState {
|
||||
// Tools
|
||||
selectedToolName: string | null;
|
||||
// The selected row's `toolRowKey` (`index:name`), not the tool's name — a
|
||||
// `tools/list` may repeat a name (#2001).
|
||||
selectedToolKey: string | null;
|
||||
toolFormValues: Record<string, unknown>;
|
||||
lastToolResult: ToolResult | null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue