fleet-memory/hindsight-clients
Nicolò Boschi c9ff37dcbf
fix(python-client): async=true silently ignored on retain (#709)
* docs(claude-code): tidy configuration reference and sync README

Add missing settings (retainMode, retainToolCalls, retainTags,
retainMetadata, embedPackagePath, llmApiKeyEnv, agentName, and
several recall options) that existed in code but not in docs.
Restructure config tables with prose introductions, clearer
descriptions, and consistent layout across both files.

* refactor(claude-code): remove recallTopK setting

Unused client-side cap — Hindsight server already controls result
count via recallBudget and recallMaxTokens.

* fix(python-client): async=true was silently ignored on retain calls

The hand-written client wrapper passed `async_=retain_async` to
RetainRequest, but the generated Pydantic model uses `var_async` as the
Python field name (with `alias="async"`). The `async_` kwarg didn't
match either the field name or the alias, so Pydantic silently ignored
it — every retain call ran synchronously regardless of the flag.

This has been broken since the client was first introduced (6073ac4f),
not a regression.

Also adds unit tests that verify the async field serializes correctly
in the request JSON, preventing future regressions.
2026-03-26 15:21:43 +01:00
..
go fix: include Pydantic v2 fields in ValidationError OpenAPI schema (#697) 2026-03-26 11:25:46 +01:00
python fix(python-client): async=true silently ignored on retain (#709) 2026-03-26 15:21:43 +01:00
rust fix: resolve all Dependabot security alerts (#702) 2026-03-26 13:15:36 +01:00
typescript docs: add supported platforms and Windows installation guide (#700) 2026-03-26 12:01:30 +01:00
.gitignore rename to hindsight (#2) 2025-11-25 19:28:26 +01:00