Skip to content

Commit 4195101

Browse files
committed
Fix CI
1 parent ae37d3a commit 4195101

5 files changed

Lines changed: 16 additions & 6 deletions

File tree

src/chat.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,12 @@ fn jsonl_dir_session(
844844
})
845845
}
846846

847-
fn make_archive(session: &ChatSession, messages: Vec<ChatMessage>, tools: Vec<ChatToolCall>, raw_events: Vec<Value>) -> ChatArchive {
847+
fn make_archive(
848+
session: &ChatSession,
849+
messages: Vec<ChatMessage>,
850+
tools: Vec<ChatToolCall>,
851+
raw_events: Vec<Value>,
852+
) -> ChatArchive {
848853
ChatArchive {
849854
schema_version: ARCHIVE_VERSION,
850855
source_provider: session.provider,

src/hook_diag.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,16 @@ fn behavior(provider: ProviderId, event: &str) -> String {
203203
return "plugin".into();
204204
}
205205
match event {
206-
e if e.contains("PreToolUse") || e.contains("UserPromptSubmit") || e.contains("Stop") => "block-capable",
206+
e if e.contains("PreToolUse") || e.contains("UserPromptSubmit") || e.contains("Stop") => {
207+
"block-capable"
208+
}
207209
e if e.contains("PostToolUse") => "warning/feedback",
208210
e if e.contains("SessionStart") => "context-injecting",
209211
e if e.contains("Notification") => "notification",
210212
e if e.contains("PreCompact") => "cleanup",
211213
_ => "unknown",
212-
}.into()
214+
}
215+
.into()
213216
}
214217

215218
fn execution(provider: ProviderId, event: &str) -> String {

src/toggler.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ fn toggle_toml_mcp(item: &mut ConfigItem) -> Result<()> {
160160
Ok(())
161161
}
162162

163-
fn apply_json_toggle(key: &str, obj: &mut serde_json::Map<String, serde_json::Value>, state: ItemState) -> ItemState {
163+
fn apply_json_toggle(
164+
key: &str,
165+
obj: &mut serde_json::Map<String, serde_json::Value>,
166+
state: ItemState,
167+
) -> ItemState {
164168
let is_agentish = key == "mcp" || key == "agent";
165169
if state.is_enabled() {
166170
if is_agentish {

src/ui/chat_panel.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ fn selected_indices(sessions: &[ChatSession], selected: &HashSet<String>) -> Vec
239239
.collect()
240240
}
241241

242-
243242
fn source_label(session: &ChatSession) -> &'static str {
244243
match session.source_kind {
245244
chat::ChatSourceKind::Jsonl => "JSONL",

src/ui/hooks_panel.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,3 @@ fn card(ui: &mut Ui, r: &HookRow, action: &mut HookAction) {
144144
});
145145
});
146146
}
147-

0 commit comments

Comments
 (0)