From 3db25c5af355ca732c9319e8d8e7136cbe8cc2f5 Mon Sep 17 00:00:00 2001 From: Pabloader Date: Thu, 26 Mar 2026 19:21:57 +0000 Subject: [PATCH] Some prompt tweaks --- src/games/storywriter/components/chat-sidebar.tsx | 2 +- src/games/storywriter/contexts/state.tsx | 1 + src/games/storywriter/utils/tools.ts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/games/storywriter/components/chat-sidebar.tsx b/src/games/storywriter/components/chat-sidebar.tsx index 4374364..bcf93c5 100644 --- a/src/games/storywriter/components/chat-sidebar.tsx +++ b/src/games/storywriter/components/chat-sidebar.tsx @@ -12,7 +12,7 @@ import { Sparkles, ChevronsRight } from "lucide-preact"; import clsx from "clsx"; import { ContentEditable } from "@common/components/ContentEditable"; -const CONTINUE_PROMPT = "Continue the story forward.\nUse `edit_text` tool in append mode to add new text to the story."; +const CONTINUE_PROMPT = "Continue the story forward.\nUse `edit_text` tool in append mode to add new text to the story.\nWait for the approval after adding."; interface RoleHeaderProps { message: ChatMessage; diff --git a/src/games/storywriter/contexts/state.tsx b/src/games/storywriter/contexts/state.tsx index 6ac867a..5f682de 100644 --- a/src/games/storywriter/contexts/state.tsx +++ b/src/games/storywriter/contexts/state.tsx @@ -41,6 +41,7 @@ export enum LocationScale { Room = 'room', House = 'house', Street = 'street', + Village = 'village', City = 'city', Region = 'region', Country = 'country', diff --git a/src/games/storywriter/utils/tools.ts b/src/games/storywriter/utils/tools.ts index 19aa45d..b276e65 100644 --- a/src/games/storywriter/utils/tools.ts +++ b/src/games/storywriter/utils/tools.ts @@ -399,10 +399,10 @@ export namespace Tools { dispatchEdit(currentText + '\n' + args.new_text); appState.dispatch({ type: 'SET_CURRENT_TAB', id: appState.currentStory.id, tab }); let message = cropped - ? `Added text:\n${args.new_text.split('\n').filter(l => l.trim()).map(l => '> ' + l).join('\n')}\n\nWarning: The rest was cropped due to ${LINES_LIMIT} lines limit! Write less next time.` + ? `Added text:\n${args.new_text.split('\n').filter(l => l.trim()).map(l => '> ' + l).join('\n')}\n\nNote: The rest was cropped due to ${LINES_LIMIT} lines limit!` : `Text appended to ${target} successfully.`; - message += `\nNote: you can't continue until user's approval, stop.` + message += `\nNote: you can't continue nor add more text until user's approval. Stop any attempts and wait.` return message; }