Skip to content

Commit 9ecc34a

Browse files
cpsievertclaude
andcommitted
fix(pkg-py): Pass client method reference instead of calling it
Follow-up to #188. Passing self.client() (calling the method) resulted in tools being registered twice - once in client() and again in mod_server - causing "Tool already registered" error. The fix: pass self.client (method reference) so mod_server can call it with the update_dashboard and reset_dashboard callbacks. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 492dd0e commit 9ecc34a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg-py/src/querychat/_querychat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def app_server(input: Inputs, output: Outputs, session: Session):
143143
self.id,
144144
data_source=self._data_source,
145145
greeting=self.greeting,
146-
client=self.client(),
146+
client=self.client,
147147
enable_bookmarking=enable_bookmarking,
148148
)
149149

@@ -809,7 +809,7 @@ def __init__(
809809
self.id,
810810
data_source=self._data_source,
811811
greeting=self.greeting,
812-
client=self.client(),
812+
client=self.client,
813813
enable_bookmarking=enable,
814814
)
815815

0 commit comments

Comments
 (0)