fix(coding-agent): stabilize interactive status indicators

Closes #6026
This commit is contained in:
Mario Zechner
2026-06-29 16:53:39 +02:00
parent 541d11f725
commit 5d499272a8
5 changed files with 239 additions and 151 deletions
@@ -10,8 +10,7 @@ type InteractiveModePrototype = {
};
type ImportCommandContext = {
loadingAnimation?: { stop: () => void };
statusContainer: { clear: () => void };
clearStatusIndicator: () => void;
runtimeHost: { importFromJsonl: (inputPath: string, cwdOverride?: string) => Promise<{ cancelled: boolean }> };
showError: (message: string) => void;
showStatus: (message: string) => void;
@@ -58,7 +57,7 @@ describe("InteractiveMode /import parsing", () => {
const showError = vi.fn();
const context: ImportCommandContext = {
statusContainer: { clear: vi.fn() },
clearStatusIndicator: vi.fn(),
runtimeHost: { importFromJsonl },
showError,
showStatus,
@@ -90,7 +89,7 @@ describe("InteractiveMode /import parsing", () => {
const showError = vi.fn();
const context: ImportCommandContext = {
statusContainer: { clear: vi.fn() },
clearStatusIndicator: vi.fn(),
runtimeHost: { importFromJsonl },
showError,
showStatus,
@@ -123,7 +122,7 @@ describe("InteractiveMode /import parsing", () => {
});
const context: ImportCommandContext = {
statusContainer: { clear: vi.fn() },
clearStatusIndicator: vi.fn(),
runtimeHost: { importFromJsonl },
showError,
showStatus,