Commit Graph

19 Commits

Author SHA1 Message Date
Ani Tunturi
1d1adb261a fix: orphaned approvals, token inflation, reasoning fields, memfs redis dep
Some checks are pending
Test Package Installation / test-install (3.11) (push) Waiting to run
Test Package Installation / test-install (3.12) (push) Waiting to run
Test Package Installation / test-install (3.13) (push) Waiting to run
[IN TESTING — self-hosted 0.16.6, Kimi-K2.5 via Synthetic Direct]

Four independent fixes that landed together on this stack:

helpers.py — skip PendingApprovalError when the associated run is already
cancelled or failed. Stale approvals from interrupted runs were blocking all
subsequent messages on that conversation. Now checks run status before raising;
falls back to raising on lookup failure (conservative).

letta_agent_v3.py — use prompt_tokens not total_tokens for context window
estimate. total_tokens inflated the estimate by including completion tokens,
triggering premature compaction. This was causing context window resets mid-
conversation and is the root of the token inflation bug (see #3242).

openai_client.py (both build_request_data paths) — strip reasoning_content,
reasoning_content_signature, redacted_reasoning_content, omitted_reasoning_content
from message history before sending to inference backends. Fireworks and Synthetic
Direct reject these fields with 422/400 errors. exclude_none handles None values
but not actual text content from previous assistant turns.

block_manager_git.py — skip DB write when block value is unchanged. Reduces
unnecessary write amplification on every memfs sync cycle.

memfs_client_base.py — remove redis_client= kwarg from GitOperations init.
Dependency was removed upstream but the call site wasn't updated.

Dockerfile / compose files — context window and config updates for 220k limit.
2026-03-26 23:24:32 -04:00
ahmedrowaihi
8320fe67cd fix(docker/compose):
- update Letta server URLs in base configuration to enable external database
- remove env redundancy
- align with startup.sh
2025-05-11 22:15:29 +03:00
cthomas
8cf5784258 chore: bump 0.7.5 (#2587)
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
Co-authored-by: Andy Li <55300002+cliandy@users.noreply.github.com>
2025-04-24 17:59:39 -07:00
cthomas
ed57f599bd feat: bake otel collector into letta image (#1292) (#2490) 2025-03-14 16:29:32 -07:00
cthomas
b09c519fa6 chore: bump version to 0.6.36 (#2469)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
2025-03-04 16:21:54 -08:00
Kevin Lin
91b495e6d1 feat: offline memory agent (#2036)
Co-authored-by: Kevin Lin <kevinlin@Kevins-MacBook-Pro.local>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2024-12-05 14:27:19 -08:00
Ahmed Rowaihi
4bd482a05d fix(compose.yaml): letta_server hostname mismatch (#2065) 2024-11-19 14:36:49 -08:00
Seth Anderson
73365b9267 fix: Fix Docker compose startup issues (letta-ai#2056) (#2057) 2024-11-17 19:28:53 -08:00
Sarah Wooders
3c97fb00a0 feat: rename docker to letta/letta (#2010) 2024-11-06 23:15:25 -08:00
Sarah Wooders
969fec81a9 fix: update compose.yaml to use updated env variables (#1887) 2024-10-14 18:35:46 -07:00
Sarah Wooders
df26e14aa1 feat: add defaults to compose and .env.example (#1792) 2024-10-01 09:50:13 -07:00
Sarah Wooders
8ae1e64987 chore: migrate package name to letta (#1775)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-09-23 09:15:18 -07:00
Sarah Wooders
416ed3fad9 feat: add workflow to build + test docker container (#1278) 2024-04-21 17:58:09 -07:00
Sarah Wooders
d8ffd6c4d6 fix: add DB prefill for default user, preset, humans, and persona for server (#1273) 2024-04-19 10:30:28 -07:00
Sarah Wooders
f3b5f5e7db fix: Clean up and simplify docker entrypoint (#1235) (#1259)
Co-authored-by: Ethan Knox <norton120@gmail.com>
2024-04-18 22:39:11 -07:00
Sarah Wooders
ec7cf62d79 fix: push/pull container from memgpt/memgpt-server:latest (#1267) 2024-04-17 16:55:07 -07:00
Sarah Wooders
534054a144 fix: fix env variable for postgres in compose.yaml (#1204) 2024-04-01 14:14:59 -07:00
Sarah Wooders
c0bd66c957 feat: client tests for docker compose server (#1189) 2024-03-26 18:58:00 -07:00
Sarah Wooders
c8297f53e4 feat: create memgpt server with postgres DB with docker compose up (#1183) 2024-03-25 22:32:26 -07:00