fix(copilot): use _LOCAL_TOOL_RESULT_FILE_ID constant for text path in _read_local_tool_result

Replace remaining hardcoded "local" string with the named constant
_LOCAL_TOOL_RESULT_FILE_ID in the text-file return path of
_read_local_tool_result, completing the previous fix that only updated
the binary-file return path.
This commit is contained in:
Zamil Majdy
2026-03-15 22:55:59 +07:00
parent 4b6c2a1323
commit 49e031b54d

View File

@@ -359,7 +359,7 @@ def _read_local_tool_result(
)
return WorkspaceFileContentResponse(
file_id="local",
file_id=_LOCAL_TOOL_RESULT_FILE_ID,
name=os.path.basename(path),
path=path,
mime_type=mimetypes.guess_type(path)[0] or "text/plain",