返回 DeepSeek-Reasonix
history_steer.go
根目录 / desktop / history_steer.go
1 package main
2
3 import (
4 "reasonix/internal/agent"
5 "reasonix/internal/event"
6 )
7
8 func historySteerRows(content string, unapplied bool) ([]HistoryMessage, bool) {
9 text, handled := agent.ReplaySteerText(content)
10 if !handled {
11 return nil, false
12 }
13 if text == "" {
14 return nil, true
15 }
16 if unapplied {
17 return []HistoryMessage{{
18 Role: "notice",
19 Content: agent.UnappliedSteerNotice(text),
20 Code: event.NoticeCodeUnappliedSteer,
21 Level: "warn",
22 }}, true
23 }
24 return []HistoryMessage{{Role: "notice", Content: "↪ " + text}}, true
25 }
26
26 lines GO