Skip to content

Conversation

@Koopa0
Copy link
Owner

@Koopa0 Koopa0 commented Dec 22, 2025

  • Make database migrations idempotent with IF NOT EXISTS
  • Fix TUI test function signature mismatches
  • Add project root detection for prompts directory in cmd tests
  • Fix chat.Config field names in TUI setup

  - Make database migrations idempotent with IF NOT EXISTS
  - Fix TUI test function signature mismatches
  - Add project root detection for prompts directory in cmd tests
  - Fix chat.Config field names in TUI setup
@Koopa0 Koopa0 merged commit 9ded469 into main Dec 22, 2025
6 of 7 checks passed
@Koopa0 Koopa0 deleted the fix/resolve-ci-testfailures branch December 22, 2025 06:29
@@ -219,13 +219,14 @@ func setupChatFlow(t *testing.T) (*chatFlowSetup, func()) {
// Combine all tools
allTools := append(append(fileTools, systemTools...), knowledgeTools...)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential maintainability issue with nested append calls

The aggregation of tool slices using nested append calls:

allTools := append(append(fileTools, systemTools...), knowledgeTools...)

can become error-prone and less readable as the number of tool groups increases or if any of the slices are nil. Consider using a single flat append with variadic arguments or a helper function to improve clarity and reduce the risk of subtle bugs:

allTools := make([]tools.Tool, 0, len(fileTools)+len(systemTools)+len(knowledgeTools))
allTools = append(allTools, fileTools...)
allTools = append(allTools, systemTools...)
allTools = append(allTools, knowledgeTools...)

This approach is more maintainable and explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants