You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A truthy llm.stream is now rejected. Because a streamed request makes litellm.completion return a stream wrapper instead of a completion, the adapter refuses the key at preflight and again when a persona-level stream under agents merges over the global block, and the failure message names the offending key. Remove the setting or set it to false. A proxy that owns its own timeout can be configured with a larger llm.timeout instead.
auto_pruning.prune_failure_history is no longer a declared setting. Recovery-based pruning moved to a cost-of-loss ranking, and the shipped config.yaml drops the key. A configuration that still sets it is ignored rather than rejected, because unknown keys are logged at debug and skipped, so deleting the line keeps the file's comments and ranges validating.
The context payload's section order changed. ## Session Resources now separates a session's own files from the turn's ## Resource Contents, the volatile ## Runtime rows moved from the header to the payload tail, and the header carries only constant environment facts with no runtime pointer row. Anything parsing input.md by section position needs updating; anything parsing by heading text does not.
The interrupt status in report.md is now INTERRUPTED. The previous ABORTED spelling is gone with no alias, so a script that matches a report's **Overall Status:** line needs updating.
Features:
PDF resources: reading a PDF through a READ action, a context manifest, or an explicit -c entry now returns the document's extracted text layer, locally and over HTTP, instead of binary noise. Extraction runs on pypdf, replacing the playwright dependency entirely, and the extracted text is capped by read.max_lines with the same head truncation a text file receives and the same announced notice. A file named *.pdf whose bytes lack the PDF magic header is rejected with an explicit reason, and every parse outcome surfaces as PdfExtractionError.
MOVE and DELETE actions: the plan protocol gains MOVE and DELETE alongside the existing file actions. Both are parsed, validated (a MOVE rejects a source that does not exist and a destination that does), dispatched through new move_path/remove_path port primitives, previewed and edited in the reviewer, rendered as report headlines, and reflected in the live context manifests so a moved or deleted path stops being re-read as a stale resource.
Session-scoped web content cache: every remote fetch — context assembly, a READ on a URL, and the reviewer's URL preview — resolves through one coordinator backed by <session_root>/.web_cache.json. Each URL is fetched at most once per session and its outcome is recorded verbatim: a success keeps the untruncated body, a failure keeps the single-line reason. A dead URL therefore costs one network attempt, its reason reaches the payload as --- FETCH FAILED: <reason> ---, and a later READ raises WebContentFetchError carrying that same reason instead of retrying. Writes merge under one process-wide lock and replace the file atomically, so concurrent fetches cannot drop each other's entry; a missing, corrupt, or malformed file reads as empty, and a bare string written by an earlier version still reads as a body. No TTL applies, and a session with no root simply caches nothing.
Session cost and cache telemetry: each turn persists the provider's own accounting — cumulative_prompt_tokens and cumulative_cached_tokens — beside the running cost, so a session reports what fraction of its input the provider served from cache as a (NN% cached) suffix. Every displayed amount now routes through one formatter at exactly four decimals, with $??? standing for an unrecorded figure, so the reviewer's Session Cost row and the terminal telemetry line cannot disagree. The reviewer's Context panel additionally states the effective model split into its name and provider, reporting unknown for a provider-less model and Unknown when nothing resolved.
Batched retention pruning:auto_pruning.max_turns_retention is now a hard ceiling rather than an approximate budget. Below it nothing is dropped; past it, only the newest turns survive, computed as max(1, max_turns_retention - retention_batch + 1), so at least one turn always remains. The new auto_pruning.retention_batch (default 5, floor 1) controls how many of the oldest turns drop together, and a batch of 1 reproduces the previous per-turn cadence.
Pruning by cost of loss: the turn-scope budget now ranks its victims by what dropping each item costs, replacing the plan-status heuristic and its setting entirely. Validation-failure pruning and the retention ceiling run first, so the budget only arbitrates what survives them. Deselecting a file that a directory entry still covers records a manifest exclusion — a !-prefixed entry — instead of deleting the covering entry, so folder-level entries keep covering files added later. Deselections travel to the reviewer as a JSON array, so a path containing a comma survives the round trip.
Interrupt handling: every interrupt — a reviewer quit, a SIGINT during planning, a killed command during execution, and now the standalone teddy execute run — shares one vocabulary and one question. The pressed key rides the report metadata as interrupt_source, so the notice names what the operator actually pressed, and the interrupt notice itself prints once rather than twice. A turn whose action ran persists its report.md; a declined quit that executed nothing clears the execution marker and writes no report, leaving the reviewed plan for resume to re-present. The question gates on a terminal being attached, so a pipeline run resolves as a declined quit instead of blocking.
Waiting indicator: while a model generates a plan, one transient line beneath the telemetry shows a parenthesised elapsed prefix that grows from (3s) to 1m0s to 1h3m29s, then erases itself on completion. It draws only when a terminal is attached, so redirected logs and CI transcripts stay newline-delimited, and it writes to the terminal behind the turn-wide log mirror, so its animation frames never reach history.log while the durable banner, telemetry, and retry notices still do.
Reviewer navigation and editing: the reviewer's section walk is derived from the tree itself and stops at the tree boundaries, every authored rationale heading renders as its own section instead of merging into body text, and both right-hand panes share one gutter and one inset so rows at equal depth line up. Long and multiline action parameters — including the action description — open in the external editor, and a row that exceeds the measured pane budget is cut rather than clipped mid-word, keeping the whole action summary in the detail view.
Context panel actions: a context node's target opens in the editor with e, and the System row becomes a persona picker: it lists the personas the workspace actually declares, and a switch persists onto the session so the next turn resumes under the chosen agent. Reading the roster goes through a new IAgentCatalog port, which reports an unusable prompt directory as AgentCatalogError instead of an empty list.
Verbatim session names: a session name typed on the command line is kept exactly as written, capitals, spaces, and digits included, so teddy resume "Auth 2.0 Rewrite" finds 20261130_120000-Auth 2.0 Rewrite. Resume matching stays case-insensitive with the latest match winning, and a name that is not a single portable path segment is rejected with InvalidSessionNameError before the opening prompt runs, so nobody answers questions for a session that cannot be created. Message-derived names still slugify, and slugify now retains digit-bearing words such as http2.
Monotonic retry window: the completion retry loop is bounded by elapsed monotonic time rather than by an attempt count, so a laptop that suspends mid-call resumes with its whole budget intact instead of burning attempts in the milliseconds after wake. Backoff grows exponentially, is capped at five seconds, and is truncated to the remaining window; a window already spent grants exactly one grace retry. Only generic transient statuses are retried — 408, 409, 429, and any 5xx — while llm.timeout remains the sole bound on a single generation.
Execution ordering: each action records an execution sequence as it is dispatched or skipped rather than at parse time, so the console log and report.md share one ordering key, and a partly hand-executed plan reports the order its actions actually ran. Skipped actions narrate through the same seam and shape as dispatched ones, with the reason recorded in the action details alone.
Shared protocol and prompts: the plan protocol now requires a closing fence before ## Action Plan or ## Message, states the per-action layout and block placement rules, and documents PDF reads as part of the READ contract. The handoff protocol was extracted as its own section with a slugified session-name convention, and the language directives were tightened to literal domain prose. teddy init prompts refreshes a customized prompt tree to the current wording.
Experimental channel upgrades: an install following pre-releases now upgrades with uv tool upgrade teddy-cli --prerelease allow, which keeps the requirement's own source so a fork or private index is preserved. The stable hint no longer forces a reinstall, so an upgrade keeps the recorded receipt intact.
Fixes:
Timed-out commands on Windows: killing a command that ran through a shell now terminates its whole process tree before the output is drained. Previously the shell's child survived, kept the stdout pipe open, and left the already-flushed output unreadable while the command outlived its own timeout.
Context status badges:git status --porcelain paths are decoded before they are keyed, so a file holding a space, a quote, or a byte outside ASCII shows its badge, and a brand-new directory reported as one trailing-slash entry now covers every file beneath it. A rename destination is selected outside quotes, so a name containing -> no longer splits the field.
Report and console spacing: a blank line separates the action log from a validation-failure headline and from the plan AST heading, and a MESSAGE banner is followed by a blank line.
READ targets: a directory passed to a READ action is rejected with an explicit reason instead of being read as a file.
Parser diagnostics: an unclosed rationale fence, or one that closes before the plan's section heading, is now reported by name rather than as an anonymous structural failure.
Session export: a file read from another session renders under ## Resource Contents instead of posing as the current session's own history when the payload carries no session root.
Prompt persistence: a session whose composed prompt file was deleted has it re-persisted, so the audit trail stays complete.
Message rendering: a Message body reflows when the terminal is resized, and the model's context window reaches the reviewer, so the budget row reflects the window actually in use.
Persona identity: the fallback agent identity of a resumed turn is resolved from the turn's own metadata rather than the current default.
Tolerated fetch failures: a web fetch the run continues past stays off the console, so a degraded resource no longer reads like a crash.
CI diagnostics:make ci-watch waits for a run to settle before reading its conclusion, and an unsettled run blocks with the run id and the status it last observed instead of printing an empty verdict.
Test isolation: the shared litellm double is isolated between tests, and the validator budget is measured in thread CPU time rather than wall-clock time.