pctx_code_mode v0.5.0
·
7 commits
to main
since this release
Bug Fixes
-
report degraded tool types to the caller
Two follow-ups from review:- Codegen degradation to
anyonly reached the logs, so a client
registering tools against a remotely deployed session server had no way
to learn its tool lost its types.Toolnow records why each schema was
degraded,CallbackReportcarries them aswarnings, and
/register/toolsreturns them alongsidefailed. with_callbacksswallowed theCallbackReportfromadd_callbacks,
hiding both failures and warnings from the builder-style caller. It now
returns(Self, CallbackReport). Breaking, and infallible: per-tool
isolation means the batch cannot fail, so the report is the only
outcome.
- Codegen degradation to
-
isolate per-tool registration failures
/register/toolsfailed the whole batch when a single tool's schema
couldn't be typed by our codegen (e.g. a recursive$ref). The portal
federates arbitrary upstream JSON Schema, so this fired constantly: in
prod each session degraded to ~135 sequential per-tool register calls
(~6.4s, ~274 daily 500s) instead of one batch call.Fix it at the layer that owns the problem:
- Codegen never fails a tool over typing.
Tool::newis infallible;
generate_typesfailures degrade to a permissiveanysignature
(with a warning) so the tool stays callable, just untyped. - Registration isolates per-tool.
add_callbacksreturns a
CallbackReport { registered, failed }instead of bubbling the first
error; a genuinely bad tool (name clash, unparseable schema) is
skipped and reported, never aborts the batch. The handler returns 200
with the report.
The portal's existing batch call now succeeds, so its per-tool fallback
never triggers — no portal change required to fix prod. - Codegen never fails a tool over typing.
Commit Statistics
- 10 commits contributed to the release.
- 9 days passed between releases.
- 2 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Commit Details
view details
- Uncategorized
- Merge pull request #142 from portofcontext/fix/141-bash-output-stderr (2b8f701)
- Verbose flags global (a65c1c8)
- Slim logs (3989073)
- Fix Display for ExecuteBashOutput (76cdeab)
- Merge pull request #137 from portofcontext/fix/concurrency (9710d8a)
- Merge branch 'main' into fix/concurrency (369d302)
- Reduce verbose info logs (bf064ac)
- Merge pull request #136 from portofcontext/fix/register-tools-per-tool-isolation (5269d81)
- Report degraded tool types to the caller (6ec9687)
- Isolate per-tool registration failures (d42790b)