mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-10 22:03:18 +08:00
fix(im): preserve cancellation during image fallback
This commit is contained in:
parent
c7679d86a1
commit
9d2e9c800b
5 changed files with 41 additions and 10 deletions
|
|
@ -1415,7 +1415,7 @@ export class HarnessClient {
|
|||
try {
|
||||
stagedImages = await this.#stageWorkspaceFiles(sessionId, imageSources, signal);
|
||||
} catch (stagingError) {
|
||||
if (signal?.aborted) throw error;
|
||||
if (signal?.aborted) throw signal.reason ?? stagingError;
|
||||
console.warn(
|
||||
`[${this.#logPrefix}] unable to restage rejected images as workspace files:`,
|
||||
stagingError?.message ?? String(stagingError),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue