@@ -131,7 +131,7 @@ func defaultRegistry(settings hawkconfig.Settings) (*tool.Registry, error) {
131131
132132func genID () string {
133133 b := make ([]byte , 8 )
134- cryptorand .Read (b )
134+ _ , _ = cryptorand .Read (b )
135135 return fmt .Sprintf ("%x" , b )
136136}
137137
@@ -255,7 +255,7 @@ func newChatModel(ref *progRef, systemPrompt string, settings hawkconfig.Setting
255255 // Initialize write-ahead log for crash recovery
256256 if wal , err := session .NewWAL (sid ); err == nil {
257257 m .wal = wal
258- wal .AppendMeta (effectiveModel , effectiveProvider , "" )
258+ _ = wal .AppendMeta (effectiveModel , effectiveProvider , "" )
259259 }
260260
261261 // Check for crash recovery
@@ -267,7 +267,7 @@ func newChatModel(ref *progRef, systemPrompt string, settings hawkconfig.Setting
267267 continue // current session WAL
268268 }
269269 if rs , err := session .RecoverFromWAL (rid ); rs != nil && err == nil {
270- session .Save (rs )
270+ _ = session .Save (rs )
271271 _ = os .Remove (filepath .Join (walDir , rid + ".wal" ))
272272 }
273273 }
@@ -583,7 +583,7 @@ func (m chatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
583583 m .messages = append (m .messages , displayMsg {role : "user" , content : text })
584584 m .session .AddUser (text )
585585 if m .wal != nil {
586- m .wal .Append (session.Message {Role : "user" , Content : text })
586+ _ = m .wal .Append (session.Message {Role : "user" , Content : text })
587587 }
588588 m .waiting = true
589589 m .autoScroll = true
@@ -666,7 +666,7 @@ func (m chatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
666666 content := sanitizeIdentity (m .partial .String ())
667667 m .messages = append (m .messages , displayMsg {role : "assistant" , content : content })
668668 if m .wal != nil {
669- m .wal .Append (session.Message {Role : "assistant" , Content : content })
669+ _ = m .wal .Append (session.Message {Role : "assistant" , Content : content })
670670 }
671671 m .partial .Reset ()
672672 }
0 commit comments