Skip to content

Commit 5afcaac

Browse files
authored
fix: process PTC tool calls without HTTP response (#2246)
- Remove the early return when `res` is unavailable in tool-call handling\n- Keep parsing and aggregation running so PTC call data is recorded in non-response flows
1 parent 9358dc6 commit 5afcaac

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
lint-staged --no-stash
2-
pnpm knip

apps/api/src/modules/skill/ptc-poller.manager.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ export class PtcPollerManager {
141141
): void {
142142
const { res, resultId, version, messageAggregator, getRunMeta } = this.context;
143143

144-
if (!res) {
145-
return;
146-
}
147-
148144
const parsedInput = safeParseJSON(ptcCall.input || '{}') ?? {};
149145
const parsedOutput = safeParseJSON(ptcCall.output || '{}') ?? {};
150146

0 commit comments

Comments
 (0)