fix(FN-000): address startup review feedback

This commit is contained in:
Aron Prins
2026-05-11 13:36:51 +02:00
parent 12ae8f77fb
commit 10b75bd386
5 changed files with 47 additions and 11 deletions

View File

@@ -166,10 +166,15 @@ async function flushFrames() {
await Promise.resolve();
}
async function focusSettingsDetailPane(stdin: { write: (chunk: string) => void }, lastFrame: () => string | undefined) {
stdin.write("\u001b[C");
async function waitForFrameUpdateAfterInput() {
// Ink can schedule the frame triggered by stdin on the next timer tick.
await new Promise((resolve) => setTimeout(resolve, 25));
await flushFrames();
}
async function focusSettingsDetailPane(stdin: { write: (chunk: string) => void }, lastFrame: () => string | undefined) {
stdin.write("\u001b[C");
await waitForFrameUpdateAfterInput();
await waitForFrameContains(lastFrame, "[C/V/X/P/L/U/K/R] remote actions");
}