fix(review): keep workflow messages compact

This commit is contained in:
Codex
2026-09-11 09:08:46 -07:00
parent 80f2588214
commit 3c9e6eeb64
13 changed files with 45 additions and 32 deletions
+6 -1
View File
@@ -19,7 +19,7 @@ mod transition_tests;
#[derive(Debug, Clone)]
pub enum Event {
Semantic(crate::semantic_review::Event),
Semantic(Box<crate::semantic_review::Event>),
Port(crate::port_workflow::Event),
ExchangeItem(Id, bool),
Endpoint(bool, EndpointChoice),
@@ -41,6 +41,11 @@ pub enum Event {
Resolve(Id, TransitionField, FieldDecision),
Preview,
}
impl Event {
pub fn semantic(event: crate::semantic_review::Event) -> Self {
Self::Semantic(Box::new(event))
}
}
pub enum Workflow {
Semantic(Box<crate::semantic_review::State>),
Ports(Box<crate::port_workflow::State>),