feat(models): Add model_override field to Ticket

This commit is contained in:
2026-03-07 16:41:47 -05:00
parent 3d89d0e026
commit 245653ce62
2 changed files with 25 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ class Ticket:
step_mode: bool = False
retry_count: int = 0
manual_block: bool = False
model_override: Optional[str] = None
def mark_blocked(self, reason: str) -> None:
self.status = "blocked"
@@ -112,6 +113,7 @@ class Ticket:
"step_mode": self.step_mode,
"retry_count": self.retry_count,
"manual_block": self.manual_block,
"model_override": self.model_override,
}
@classmethod
@@ -130,6 +132,7 @@ class Ticket:
step_mode=data.get("step_mode", False),
retry_count=data.get("retry_count", 0),
manual_block=data.get("manual_block", False),
model_override=data.get("model_override"),
)