From b29d063ba777d10a861746db930c745e562fd007 Mon Sep 17 00:00:00 2001 From: jnjpng Date: Thu, 19 Feb 2026 17:16:34 -0800 Subject: [PATCH] feat: forward letta-code feedback context fields to PostHog (#9567) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add flattened feedback context fields for PostHog filterability Add system info (local_time, device_type, cwd), session stats (token counts, timing), agent info (agent_name, agent_description, model), and account info (billing_tier) as flat top-level fields to the /v1/metadata/feedback endpoint. Flat fields allow direct PostHog filtering/breakdown without HogQL. 🐾 Generated with [Letta Code](https://letta.com) Co-Authored-By: Letta * chore: regenerate API specs --------- Co-authored-by: Letta --- fern/openapi.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/fern/openapi.json b/fern/openapi.json index f9638a4c..55a528b4 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -21592,6 +21592,57 @@ }, "settings": { "type": "string" + }, + "local_time": { + "type": "string" + }, + "device_type": { + "type": "string" + }, + "cwd": { + "type": "string" + }, + "total_api_ms": { + "type": "number" + }, + "total_wall_ms": { + "type": "number" + }, + "step_count": { + "type": "number" + }, + "prompt_tokens": { + "type": "number" + }, + "completion_tokens": { + "type": "number" + }, + "total_tokens": { + "type": "number" + }, + "cached_input_tokens": { + "type": "number" + }, + "cache_write_tokens": { + "type": "number" + }, + "reasoning_tokens": { + "type": "number" + }, + "context_tokens": { + "type": "number" + }, + "agent_name": { + "type": "string" + }, + "agent_description": { + "type": "string" + }, + "model": { + "type": "string" + }, + "billing_tier": { + "type": "string" } }, "required": ["message"]