mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[PR #152] [MERGED] fix: propagate container lookup error in GetTool #193
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/152
Author: @mason5052
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @asdek
Base:
feature/next_release← Head:fix/silent-error-handling-gettool📝 Commits (1)
5720402fix: propagate container lookup error in GetTool for terminal/file tools📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
backend/cmd/ftester/worker/executor.go(+8 -2)📄 Description
Description
Problem
GetTool()inexecutor.gosilently ignores errors fromGetFlowPrimaryContainer(lines 99-102). When the container lookup fails,containerIDremains0andcontainerLIDremains"". These invalid values are passed toNewTerminalTool, which later produces cryptic downstream errors like "container is not running" or Docker API errors about invalid container references.The real root cause (missing/unreachable primary container) is hidden from the user.
Solution
GetFlowPrimaryContainerwhen the tool actually requires a container (TerminalToolName,FileToolName)Closes #145
Type of Change
Areas Affected
Testing
Configuration
Steps to Reproduce the Bug
Expected Result After Fix
Security Considerations
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.