mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
tui: fix tool permission lookup to use correct session ID
This commit is contained in:
@@ -919,7 +919,7 @@ function ToolPart(props: { part: ToolPart; message: AssistantMessage }) {
|
||||
const render = ToolRegistry.render(props.part.tool) ?? GenericTool
|
||||
|
||||
const metadata = props.part.state.status === "pending" ? {} : (props.part.state.metadata ?? {})
|
||||
const input = props.part.state.input
|
||||
const input = props.part.state.input ?? {}
|
||||
const container = ToolRegistry.container(props.part.tool)
|
||||
const permissions = sync.data.permission[props.message.sessionID] ?? []
|
||||
const permissionIndex = permissions.findIndex((x) => x.callID === props.part.callID)
|
||||
|
||||
Reference in New Issue
Block a user