@@ -221,7 +221,7 @@ describe("buildEmbeddedRunPayloads tool warnings", () => {
221221 } ) ;
222222
223223 expectSinglePayloadSummary ( payloads , {
224- text : "⚠️ 🛠️ Exec failed (exit 1)" ,
224+ text : "⚠️ Exec failed (exit 1)" ,
225225 isError : true ,
226226 } ) ;
227227 } ) ;
@@ -239,19 +239,19 @@ describe("buildEmbeddedRunPayloads tool warnings", () => {
239239 } ) ;
240240
241241 expectSinglePayloadSummary ( payloads , {
242- text : "⚠️ 🛠️ Exec failed: `python3 /path/to/daily-cost-audit.py`: Command exited with code 1" ,
242+ text : "⚠️ Exec failed: `python3 /path/to/daily-cost-audit.py`: Command exited with code 1" ,
243243 isError : true ,
244244 } ) ;
245245 expect ( payloads [ 0 ] ?. text ) . not . toContain ( "`run python3" ) ;
246246 } ) ;
247247
248248 it . each ( [
249- [ false , "off" , "⚠️ 🛠️ Exec blocked (exit 7)" ] ,
250- [ false , "full" , "⚠️ 🛠️ Exec blocked: `make build`: Command exited with code 7" ] ,
251- [ true , "off" , "⚠️ 🛠️ Exec failed (exit 7)" ] ,
252- [ true , "full" , "⚠️ 🛠️ Exec failed: `make build`: Command exited with code 7" ] ,
253- [ undefined , "off" , "⚠️ 🛠️ Exec failed (exit 7)" ] ,
254- [ undefined , "full" , "⚠️ 🛠️ Exec failed: `make build`: Command exited with code 7" ] ,
249+ [ false , "off" , "⚠️ Exec blocked (exit 7)" ] ,
250+ [ false , "full" , "⚠️ Exec blocked: `make build`: Command exited with code 7" ] ,
251+ [ true , "off" , "⚠️ Exec failed (exit 7)" ] ,
252+ [ true , "full" , "⚠️ Exec failed: `make build`: Command exited with code 7" ] ,
253+ [ undefined , "off" , "⚠️ Exec failed (exit 7)" ] ,
254+ [ undefined , "full" , "⚠️ Exec failed: `make build`: Command exited with code 7" ] ,
255255 ] as const ) (
256256 "renders executionStarted=%s at %s verbosity from structured state" ,
257257 ( executionStarted , verboseLevel , expected ) => {
@@ -276,51 +276,50 @@ describe("buildEmbeddedRunPayloads tool warnings", () => {
276276 title : "prefers raw exec metadata when tool progress detail includes it" ,
277277 meta : "run python3 /tmp/audit.py · `python3 /tmp/audit.py`" ,
278278 toolResultFormat : "markdown" ,
279- expected : "⚠️ 🛠️ Exec failed: `python3 /tmp/audit.py`: Command exited with code 1" ,
279+ expected : "⚠️ Exec failed: `python3 /tmp/audit.py`: Command exited with code 1" ,
280280 } ,
281281 {
282282 title : "prefers raw exec metadata when the literal command contains backticks" ,
283283 meta : "run node inline script, `node -e 'console.log(1, `x`)'`" ,
284284 toolResultFormat : "markdown" ,
285- expected : "⚠️ 🛠️ Exec failed: ``node -e 'console.log(1, `x`)'``: Command exited with code 1" ,
285+ expected : "⚠️ Exec failed: ``node -e 'console.log(1, `x`)'``: Command exited with code 1" ,
286286 } ,
287287 {
288288 title : "leaves exec metadata unwrapped for plain tool results" ,
289289 meta : "run node inline script, `node -e 'console.log(1, `x`)'`" ,
290290 toolResultFormat : "plain" ,
291- expected : "⚠️ 🛠️ Exec failed: node -e 'console.log(1, `x`)': Command exited with code 1" ,
291+ expected : "⚠️ Exec failed: node -e 'console.log(1, `x`)': Command exited with code 1" ,
292292 } ,
293293 {
294294 title : "preserves raw exec context before trailing raw command metadata" ,
295295 meta : "run python3 /tmp/audit.py, node: mac-1, `python3 /tmp/audit.py`" ,
296296 toolResultFormat : "markdown" ,
297- expected :
298- "⚠️ 🛠️ Exec failed: `node: mac-1 · python3 /tmp/audit.py`: Command exited with code 1" ,
297+ expected : "⚠️ Exec failed: `node: mac-1 · python3 /tmp/audit.py`: Command exited with code 1" ,
299298 } ,
300299 {
301300 title : "does not promote display-summary commas into raw exec context" ,
302301 meta : 'search "foo,bar" in src, `rg "foo,bar" src`' ,
303302 toolResultFormat : "markdown" ,
304- expected : '⚠️ 🛠️ Exec failed: `rg "foo,bar" src`: Command exited with code 1' ,
303+ expected : '⚠️ Exec failed: `rg "foo,bar" src`: Command exited with code 1' ,
305304 } ,
306305 {
307306 title : "does not treat parenthesized raw command arguments as cwd context" ,
308307 meta : 'list files in (in progress) · `ls "(in progress)"`' ,
309308 toolResultFormat : "markdown" ,
310- expected : '⚠️ 🛠️ Exec failed: `ls "(in progress)"`: Command exited with code 1' ,
309+ expected : '⚠️ Exec failed: `ls "(in progress)"`: Command exited with code 1' ,
311310 } ,
312311 {
313312 title : "does not duplicate compact cwd labels already present in raw command arguments" ,
314313 meta : 'print text (repo) · `printf "%s" "(repo)"`' ,
315314 toolResultFormat : "markdown" ,
316- expected : '⚠️ 🛠️ Exec failed: `printf "%s" "(repo)"`: Command exited with code 1' ,
315+ expected : '⚠️ Exec failed: `printf "%s" "(repo)"`: Command exited with code 1' ,
317316 } ,
318317 {
319318 title : "keeps arbitrary exec cwd suffixes inside markdown command text" ,
320319 meta : "run python3 /tmp/audit.py (in /tmp/build @everyone)" ,
321320 toolResultFormat : "markdown" ,
322321 expected :
323- "⚠️ 🛠️ Exec failed: `python3 /tmp/audit.py (in /tmp/build @everyone)`: Command exited with code 1" ,
322+ "⚠️ Exec failed: `python3 /tmp/audit.py (in /tmp/build @everyone)`: Command exited with code 1" ,
324323 } ,
325324 ] as const ) ( "$title" , ( { meta, toolResultFormat, expected } ) => {
326325 const payloads = buildPayloads ( {
@@ -373,15 +372,15 @@ describe("buildEmbeddedRunPayloads tool warnings", () => {
373372 } ) ;
374373
375374 expectSinglePayloadSummary ( cwdPayloads , {
376- text : "⚠️ 🛠️ Exec failed: `python3 audit.py (in /tmp/build)`: Command exited with code 1" ,
375+ text : "⚠️ Exec failed: `python3 audit.py (in /tmp/build)`: Command exited with code 1" ,
377376 isError : true ,
378377 } ) ;
379378 expectSinglePayloadSummary ( workspaceNodePayloads , {
380- text : "⚠️ 🛠️ Exec failed: `node: mac-1 · python3 audit.py (workspace)`: Command exited with code 1" ,
379+ text : "⚠️ Exec failed: `node: mac-1 · python3 audit.py (workspace)`: Command exited with code 1" ,
381380 isError : true ,
382381 } ) ;
383382 expectSinglePayloadSummary ( semanticCompactPayloads , {
384- text : "⚠️ 🛠️ Exec failed: `git status (repo)`: Command exited with code 1" ,
383+ text : "⚠️ Exec failed: `git status (repo)`: Command exited with code 1" ,
385384 isError : true ,
386385 } ) ;
387386 } ) ;
@@ -391,52 +390,52 @@ describe("buildEmbeddedRunPayloads tool warnings", () => {
391390 name : "strips a literal synthetic run prefix" ,
392391 meta : "run make build" ,
393392 error : "Command failed with exit code 2" ,
394- expected : "⚠️ 🛠️ Exec failed: `make build`: Command failed with exit code 2" ,
393+ expected : "⚠️ Exec failed: `make build`: Command failed with exit code 2" ,
395394 } ,
396395 {
397396 name : "preserves a semantic test summary" ,
398397 meta : "run tests" ,
399398 error : "Command failed with exit code 1" ,
400- expected : "⚠️ 🛠️ Exec failed: `run tests`: Command failed with exit code 1" ,
399+ expected : "⚠️ Exec failed: `run tests`: Command failed with exit code 1" ,
401400 } ,
402401 {
403402 name : "preserves a semantic deploy summary" ,
404403 meta : "run deploy" ,
405404 error : "Command failed with exit code 1" ,
406- expected : "⚠️ 🛠️ Exec failed: `run deploy`: Command failed with exit code 1" ,
405+ expected : "⚠️ Exec failed: `run deploy`: Command failed with exit code 1" ,
407406 } ,
408407 {
409408 name : "preserves a compound summary" ,
410409 meta : "run tests → install dependencies" ,
411410 error : "Command failed with exit code 1" ,
412411 expected :
413- "⚠️ 🛠️ Exec failed: `run tests → install dependencies`: Command failed with exit code 1" ,
412+ "⚠️ Exec failed: `run tests → install dependencies`: Command failed with exit code 1" ,
414413 } ,
415414 {
416415 name : "preserves an inline-script summary" ,
417416 meta : "run node inline script" ,
418417 error : "Command failed with exit code 1" ,
419- expected : "⚠️ 🛠️ Exec failed: `run node inline script`: Command failed with exit code 1" ,
418+ expected : "⚠️ Exec failed: `run node inline script`: Command failed with exit code 1" ,
420419 } ,
421420 {
422421 name : "preserves a heredoc summary" ,
423422 meta : "run python3 inline script (heredoc)" ,
424423 error : "Command failed with exit code 1" ,
425424 expected :
426- "⚠️ 🛠️ Exec failed: `run python3 inline script (heredoc)`: Command failed with exit code 1" ,
425+ "⚠️ Exec failed: `run python3 inline script (heredoc)`: Command failed with exit code 1" ,
427426 } ,
428427 {
429428 name : "preserves a sed summary" ,
430429 meta : "run sed on file" ,
431430 error : "Command failed with exit code 1" ,
432- expected : "⚠️ 🛠️ Exec failed: `run sed on file`: Command failed with exit code 1" ,
431+ expected : "⚠️ Exec failed: `run sed on file`: Command failed with exit code 1" ,
433432 } ,
434433 {
435434 name : "preserves a pipeline summary" ,
436435 meta : "run tests -> show first 3 lines" ,
437436 error : "Command failed with exit code 1" ,
438437 expected :
439- "⚠️ 🛠️ Exec failed: `run tests -> show first 3 lines`: Command failed with exit code 1" ,
438+ "⚠️ Exec failed: `run tests -> show first 3 lines`: Command failed with exit code 1" ,
440439 } ,
441440 ] ) ( "formats exec metadata: $name" , ( { meta, error, expected } ) => {
442441 const payloads = buildPayloads ( {
@@ -468,7 +467,7 @@ describe("buildEmbeddedRunPayloads tool warnings", () => {
468467 } ) ;
469468
470469 expectSinglePayloadSummary ( payloads , {
471- text : "⚠️ 🛠️ Bash failed: `show matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt` (workspace): Command exited with code 1" ,
470+ text : "⚠️ Bash failed: `show matrix-progress-@room-@alice:matrix-qa.test-!room:matrix-qa.test.txt` (workspace): Command exited with code 1" ,
472471 isError : true ,
473472 } ) ;
474473 } ) ;
0 commit comments