mirror of
https://github.com/skilfoy/ARTEX-English.git
synced 2026-12-03 13:11:02 +00:00
The application tree is BaaRai/ARTEX v0.7.0 (22ae88af), imported as one commit because that history is not in this repository. This commit adds the cloud installer, a defender pack for the console and the known-bad image names, and a supply-chain check. The opt-in update banner points at this fork and stays off in the cloud compose file.
19 lines
626 B
Go
19 lines
626 B
Go
package agent
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/Autumn-27/norma/agentcore"
|
|
)
|
|
|
|
// resumeSession reloads the persisted conversation of session id into s. Norma's
|
|
// transcript.Store.Load treats a missing file as a fresh session (no records, no
|
|
// error); any other failure, such as a corrupt line or an unreadable path, is
|
|
// returned so the caller stops before the first model or tool call instead of
|
|
// appending a new conversation to the damaged file.
|
|
func resumeSession(s *agentcore.Session, id string) error {
|
|
if err := s.Resume(id); err != nil {
|
|
return fmt.Errorf("restore Norma session %q: %w", id, err)
|
|
}
|
|
return nil
|
|
}
|