fix(tui): restore interleave_images, dropped by the typing-backoff commit
c9ccb4f01was assembled by copying files out of a scratch worktree, and the copy of app.rs predated524032dfd, so it silently reverted that commit's interleave_images field and its two initializers plus the reset in tui_lifecycle. That left master unable to compile jcode-tui. Copying whole files between trees is the root cause here; targeted edits would have made the conflict visible instead of quietly reverting someone else's work.
This commit is contained in:
@@ -1464,6 +1464,8 @@ pub struct App {
|
||||
active_experimental_feature_notice: Option<String>,
|
||||
// Message to interleave during processing (set via Ctrl+Enter in queue mode)
|
||||
interleave_message: Option<String>,
|
||||
// Image attachments associated with the staged interleave message.
|
||||
interleave_images: Vec<(String, String)>,
|
||||
// Message sent as soft interrupt but not yet injected (shown in queue preview until injected)
|
||||
pending_soft_interrupts: Vec<String>,
|
||||
// Soft interrupts written to the socket but not yet acknowledged by the server.
|
||||
|
||||
@@ -28,6 +28,7 @@ impl App {
|
||||
self.push_display_message(DisplayMessage::system(message).with_title(title));
|
||||
}
|
||||
self.interleave_message = None;
|
||||
self.interleave_images.clear();
|
||||
self.rate_limit_pending_message = restored.rate_limit_pending_message;
|
||||
self.rate_limit_reset = restored.rate_limit_reset;
|
||||
self.observe_page_markdown = restored.observe_page_markdown;
|
||||
@@ -642,6 +643,7 @@ impl App {
|
||||
experimental_feature_warnings_seen: HashSet::new(),
|
||||
active_experimental_feature_notice: None,
|
||||
interleave_message: None,
|
||||
interleave_images: Vec::new(),
|
||||
pending_soft_interrupts: Vec::new(),
|
||||
pending_soft_interrupt_requests: Vec::new(),
|
||||
autoreview_after_current_turn: false,
|
||||
@@ -1077,6 +1079,7 @@ impl App {
|
||||
experimental_feature_warnings_seen: HashSet::new(),
|
||||
active_experimental_feature_notice: None,
|
||||
interleave_message: None,
|
||||
interleave_images: Vec::new(),
|
||||
pending_soft_interrupts: Vec::new(),
|
||||
pending_soft_interrupt_requests: Vec::new(),
|
||||
autoreview_after_current_turn: false,
|
||||
|
||||
Reference in New Issue
Block a user