Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Say the binding rule once, in one vocabulary

Bitti58a341b9996e
diff --git a/src/components/PromptComposer.tsx b/src/components/PromptComposer.tsx
index 8c6587a..24db32d 100644
--- a/src/components/PromptComposer.tsx
+++ b/src/components/PromptComposer.tsx
@@ -58,8 +58,12 @@ export function PromptComposer({ busy, onCreate }: PromptComposerProps) {
const replacesUserText = prompt.trim().length > 0 && !ideas.some((idea) => idea.prompt === prompt);
/* What a chip click overwrote, kept so it can be put back. The textarea is
React-controlled, so Ctrl+Z cannot recover a programmatic set — without
- this, the words are simply gone. Held until the user types again or
- submits, rather than on a timer that could expire mid-read. */
+ this, the words are simply gone. Held until the user types again, or
+ until this composer unmounts on navigation into the project — never on a
+ timer that could expire mid-read. Note submit does NOT clear it: on
+ success App swaps the library for the workspace and takes this component
+ with it, and on failure the composer stays mounted, so the words and the
+ offer both survive the error. That is the behaviour we want; keep it. */
const [replacedText, setReplacedText] = useState<string | null>(null);
const useIdea = (ideaPrompt: string) => {
/* Keep the EARLIEST stash, not the latest. After the first chip click the
diff --git a/src/components/workspace/ReferencesView.tsx b/src/components/workspace/ReferencesView.tsx
index 22b1a10..158033c 100644
--- a/src/components/workspace/ReferencesView.tsx
+++ b/src/components/workspace/ReferencesView.tsx
@@ -96,7 +96,7 @@ export function ReferencesView({ config, folderPath, onChange }: { config: Proje
whether or not it has been described. Saying it was "skipped until
you write its definition" contradicted the card 30px away, which
correctly says the picture is sent. */}
- <p>Each new shot uses the first two references in this list. An image counts as soon as you import it: its file is copied into the project’s <code>references/</code> folder and sent to the video engine, and describing it tells the engine what to keep about it. A text definition isn’t used until you write it, and then it reaches the engine as words in the shot’s prompt. Newest additions go to the top.</p></div></div>
+ <p>Each new shot uses the first two it can use from this list. An image counts as soon as you import it: its file is copied into the project’s <code>references/</code> folder and sent to the video engine, and describing it tells the engine what to keep about it. A text definition isn’t used until you write it, and then it reaches the engine as words in the shot’s prompt. Newest additions go to the top.</p></div></div>
</section>
<aside className="reference-inspector">