feat(web): copy original run prompt

This commit is contained in:
2026-10-21 12:19:26 +01:00
parent 634f241019
commit cc094fc06d
6 changed files with 275 additions and 0 deletions
+5
View File
@@ -66,6 +66,11 @@ export const EMPTY_OUTPUT_MESSAGE = "No output recorded.";
export const EMPTY_TIMELINE_MESSAGE = "No visits recorded.";
export const NO_STAGE_DETAILS_MESSAGE = "No details recorded for this node.";
/** The original run prompt, without display formatting or a fallback source. */
export function originalRunPrompt(run) {
return typeof run?.input?.prompt === "string" ? run.input.prompt : undefined;
}
/** The stage-pane section titles (Android StageDetailPane constants). */
export const STAGE_ARTIFACTS_TITLE = "Artifacts";
export const STAGE_SESSION_TITLE = "Session";