mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
tui: fix tool permission lookup to use correct session ID
This commit is contained in:
parent
9886353715
commit
25eb100210
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user