feat: propagate workspace prompt revisions

This commit is contained in:
2026-08-19 06:01:03 +09:00
parent d24d50cac9
commit 17d6789b41
7 changed files with 351 additions and 7 deletions
+17
View File
@@ -357,6 +357,16 @@ pub trait WorkerExecutionBackend: Send + Sync + 'static {
))
}
/// Observe a newer immutable Workspace Prompt projection. Profile-backed
/// execution uses this as a revision notification; other backends may
/// safely ignore it.
fn observe_workspace_prompt_projection(
&self,
_projection: worker::WorkspacePromptProjection,
) -> Result<(), String> {
Ok(())
}
fn dispatch_input(
&self,
handle: &WorkerExecutionHandle,
@@ -469,6 +479,13 @@ impl WorkerExecutionBackendRef {
self.backend.cleanup_working_directory(working_directory_id)
}
pub(crate) fn observe_workspace_prompt_projection(
&self,
projection: worker::WorkspacePromptProjection,
) -> Result<(), String> {
self.backend.observe_workspace_prompt_projection(projection)
}
pub(crate) fn dispatch_input(
&self,
handle: &WorkerExecutionHandle,