forge-remote 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/session-manager.js +8 -1
package/package.json
CHANGED
package/src/session-manager.js
CHANGED
|
@@ -522,6 +522,7 @@ async function handleSessionCommand(sessionId, commandDoc) {
|
|
|
522
522
|
sessionId,
|
|
523
523
|
data.payload?.prompt,
|
|
524
524
|
data.payload?.imageBase64,
|
|
525
|
+
data.payload?.model,
|
|
525
526
|
);
|
|
526
527
|
break;
|
|
527
528
|
case "stop_session":
|
|
@@ -830,7 +831,7 @@ export async function startNewSession(desktopId, payload) {
|
|
|
830
831
|
// Send a follow-up prompt (spawns a new process with --continue)
|
|
831
832
|
// ---------------------------------------------------------------------------
|
|
832
833
|
|
|
833
|
-
async function sendFollowUpPrompt(sessionId, prompt, imageBase64) {
|
|
834
|
+
async function sendFollowUpPrompt(sessionId, prompt, imageBase64, model) {
|
|
834
835
|
const session = activeSessions.get(sessionId);
|
|
835
836
|
if (!session) {
|
|
836
837
|
throw new Error("Session not found. It may have ended.");
|
|
@@ -895,6 +896,12 @@ async function sendFollowUpPrompt(sessionId, prompt, imageBase64) {
|
|
|
895
896
|
// duplicate this write to avoid showing the message twice.
|
|
896
897
|
const db = getDb();
|
|
897
898
|
|
|
899
|
+
// If the mobile app sent a model preference, use it for this follow-up.
|
|
900
|
+
if (model && model !== session.model) {
|
|
901
|
+
log.session(sessionId, `Model override: ${session.model} → ${model}`);
|
|
902
|
+
session.model = model;
|
|
903
|
+
}
|
|
904
|
+
|
|
898
905
|
let finalPrompt = prompt;
|
|
899
906
|
// Image path prepending disabled — see note above.
|
|
900
907
|
// if (imagePath) {
|