Skip to content

[Presets] Typed models and stored format overhaul - #4150

Merged
peterschmidt85 merged 1 commit into
masterfrom
preset-model-quality
Aug 15, 2026
Merged

[Presets] Typed models and stored format overhaul#4150
peterschmidt85 merged 1 commit into
masterfrom
preset-model-quality

Conversation

@peterschmidt85

@peterschmidt85 peterschmidt85 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

The presets implementation relied on untyped dicts passed between components, unlike the rest of dstack. This PR refactors presets to use pydantic models where possible, making a common model layer across all preset components: the stored preset, the agent report, the Claude stream events, and the session state.

Backward compatibility

  • Presets and sessions created by 0.21.x remain readable: they are upgraded on read and rewritten in the new format on save (compatibility code to be removed in 0.22).
  • Presets created before 0.21 cannot be read; dstack preset suggests deleting or recreating them.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@peterschmidt85
peterschmidt85 marked this pull request as ready for review August 15, 2026 17:22
@peterschmidt85
peterschmidt85 merged commit 779777b into master Aug 15, 2026
27 checks passed
@peterschmidt85
peterschmidt85 deleted the preset-model-quality branch August 15, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant