Fix/img gen format support OpenAI#1223
Conversation
- Introduced a new `custom_tools` table to support user-defined shell commands with multi-tenant capabilities. - Implemented CRUD operations for custom tools in the backend. - Added UI components for creating, editing, and listing custom tools. - Integrated custom tools into the sidebar and routing. - Enhanced form validation for custom tool parameters using Zod. - Added necessary migrations for the new schema. - Updated the application version to reflect the new features.
- Updated the custom tools data model to replace the single agent ID with an array of agent IDs, allowing tools to be assigned to multiple agents. - Modified API endpoints and request/response structures to accommodate the new agent IDs array. - Enhanced the UI components to support multi-agent selection, including a new MultiAgentPicker component for better user experience. - Updated localization files to reflect changes in agent assignment terminology. - Added database migrations to transition from the old agent ID structure to the new agent IDs array.
PR ReviewVerdict: REQUEST CHANGES Summary
Findings
Existing capability checkConfirmed on
So if the intent is "use ChatGPT subscription to generate images", this PR is not the right unit of work. That feature is already present; we should not merge a large custom-tools feature under an image-format PR. Anti-AI-Slop Check
Tests / CI
Final NotesPlease split the PR and keep the image-format fix minimal. For the Custom Tools feature, it needs a separate design/security review before it should be mergeable. |
Summary
Type
main)Target Branch
Checklist
go build ./...passesgo build -tags sqliteonly ./...passes (if Go changes)go vet ./...passesgo test -race ./...cd ui/web && pnpm build(if UI changes)$1, $2(no string concat)internal/upgrade/version.go(if new migration)Test Plan