Skip to content

Commit 9dfdb2f

Browse files
authored
docs(server): reattach recordToolCallAt doc comment (#1690)
Follow-up to #1687: reattach the doc comment that the sanitiser-block change left detached from recordToolCallAt.
1 parent 3558c53 commit 9dfdb2f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎internal/server/mcp.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4140,8 +4140,6 @@ func (p *MCPProxyServer) toolCallIncarnation(serverName string) int64 {
41404140
return 0
41414141
}
41424142

4143-
// recordToolCallAt records a call's history only while its server still has
4144-
// the incarnation the call started on (Spec 116 FR-014c).
41454143
// recordOutputBlocked is the bookkeeping a dispatch owes a call whose result
41464144
// an output policy (Spec 054 block mode) refused to hand over: the upstream
41474145
// ran, so the tool-call history gets the attempt, with the block message in
@@ -4160,6 +4158,8 @@ func (p *MCPProxyServer) recordOutputBlocked(ctx context.Context, rec *storage.T
41604158
return msg
41614159
}
41624160

4161+
// recordToolCallAt records a call's history only while its server still has
4162+
// the incarnation the call started on (Spec 116 FR-014c).
41634163
func (p *MCPProxyServer) recordToolCallAt(rec *storage.ToolCallRecord, inc int64) error {
41644164
written, err := p.storage.RecordToolCallIfIncarnation(rec, inc)
41654165
if err == nil && !written {

0 commit comments

Comments
 (0)