Skip to content

fix(storage): forward since/until/allowedConnectionIds in QueryHistoryManager.fetchHistory#1178

Merged
datlechin merged 1 commit intomainfrom
fix/query-history-manager-fetch-history-signature
May 10, 2026
Merged

fix(storage): forward since/until/allowedConnectionIds in QueryHistoryManager.fetchHistory#1178
datlechin merged 1 commit intomainfrom
fix/query-history-manager-fetch-history-signature

Conversation

@datlechin
Copy link
Copy Markdown
Member

Summary

Hotfix for the build error introduced by PR #1176.

SearchQueryHistoryTool.searchHistory calls QueryHistoryManager.shared.fetchHistory(...) with since, until, and allowedConnectionIds arguments. PR #1176 migrated that call site from QueryHistoryStorage.shared to QueryHistoryManager.shared, but QueryHistoryManager.fetchHistory exposed only the first five parameters (limit, offset, connectionId, searchText, dateFilter). Storage's signature includes three more (since, until, allowedConnectionIds).

Compiler error:

SearchQueryHistoryTool.swift:79:68 Extra arguments at positions #6, #7, #8 in call

This PR widens the Manager's fetchHistory to forward all eight parameters to Storage so the call site compiles unchanged. The new parameters all default to nil, so other callers (HistoryDataProvider, MCPConnectionBridge, HistoryPanelView) keep their current behavior.

Test plan

@datlechin datlechin merged commit d9910dc into main May 10, 2026
2 checks passed
@datlechin datlechin deleted the fix/query-history-manager-fetch-history-signature branch May 10, 2026 07:21
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.

1 participant