quickshell: make conversation resume explicit
This commit is contained in:
parent
cf2ba25089
commit
e5813ab6c9
2 changed files with 3 additions and 6 deletions
|
|
@ -84,13 +84,11 @@ Singleton {
|
|||
});
|
||||
root.models = map;
|
||||
root.modelList = Object.keys(map);
|
||||
// Restore the selected agent, then derive its latest conversation
|
||||
// from the server. No per-agent conversation map lives in the UI.
|
||||
// Restore only the selected-agent preference. Conversation resume
|
||||
// is intentional: /resume derives it from the server on demand.
|
||||
const persisted = Persistent.states?.ai?.model ?? "";
|
||||
if (persisted.length > 0 && Souveraine.agents[persisted]) {
|
||||
Souveraine.selectAgent(persisted);
|
||||
} else if (Souveraine.currentAgentId.length > 0) {
|
||||
Souveraine.selectAgent(Souveraine.currentAgentId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -350,7 +348,7 @@ Singleton {
|
|||
return;
|
||||
}
|
||||
root.currentModel = models[modelId];
|
||||
if (feedback) root.addMessage(Translation.tr("Switched to %1 — resuming her latest conversation.").arg(models[modelId].name), root.interfaceRole);
|
||||
if (feedback) root.addMessage(Translation.tr("Agent set to %1.").arg(models[modelId].name), root.interfaceRole);
|
||||
}
|
||||
|
||||
function resumeConversation() {
|
||||
|
|
|
|||
|
|
@ -135,7 +135,6 @@ Singleton {
|
|||
if (root.turnActive) return false;
|
||||
root.currentAgentId = agentId;
|
||||
root.conversationId = "";
|
||||
root.resumeLatestConversation();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue