diff --git a/todos/work/2025-08-09-23-33-17-missing-thinking-tokens/analysis.md b/todos/done/2025-08-09-23-33-17-missing-thinking-tokens-analysis.md similarity index 100% rename from todos/work/2025-08-09-23-33-17-missing-thinking-tokens/analysis.md rename to todos/done/2025-08-09-23-33-17-missing-thinking-tokens-analysis.md diff --git a/todos/work/2025-08-09-23-33-17-missing-thinking-tokens/task.md b/todos/done/2025-08-09-23-33-17-missing-thinking-tokens.md similarity index 98% rename from todos/work/2025-08-09-23-33-17-missing-thinking-tokens/task.md rename to todos/done/2025-08-09-23-33-17-missing-thinking-tokens.md index 63b98bef..7cf91faa 100644 --- a/todos/work/2025-08-09-23-33-17-missing-thinking-tokens/task.md +++ b/todos/done/2025-08-09-23-33-17-missing-thinking-tokens.md @@ -1,6 +1,6 @@ # Fix Missing Thinking Tokens for GPT-5 and Anthropic Models -**Status:** AwaitingCommit -**Agent PID:** 41002 +**Status:** Done +**Agent PID:** 72653 ## Original Todo agent: we do not get thinking tokens for gpt-5. possibly also not for anthropic models? diff --git a/todos/todos.md b/todos/todos.md index a61f52da..e762ead9 100644 --- a/todos/todos.md +++ b/todos/todos.md @@ -1,3 +1,20 @@ +- tui: we get tons of flicker in the text editor component. specifically, if we have an animated component above the editor, the editor needs re-rendering completely. Different strategy: + - keep a back buffer and front buffer. a buffer is a list of lines. + - on Tui.render() + - render a new back buffer, top to bottom. components can cache previous render results and return that as a single list of lines if nothing changed + - compare the back buffer with the front buffer. for each line that changed + - position the cursor at that line + - clear the line + - render the new line + - batch multiple subsequent lines that changed so we do not have tons of writeSync() calls + - Open questions: + - is this faster and procudes less flicker? + - If possible, we should implement this as a new TuiDoubleBuffer class. Existing components should not need changing, as they already report if they changed and report their lines + - Testing: + - Create a packages/tui/test/single-buffer.ts file: it has a LoadingAnimation like in packages/agent/src/renderers/tui-renderer.ts inside a container as the first child, and a text editor component as the second child, which is focused. + - Create a packages/tui/test/double-buffer.ts file: same setup + - Measure timing of render() for both + - agent: improve reasoning section in README.md - agent: ultrathink to temporarily set reasoning_effort?