Commit 00338b2
authored
feat(actions): restore task preamble log and fix clipboard keybindings (#235)
* feat(actions): restore task preamble log and fix clipboard fallback order
Re-add the dir/cmd/env preamble that was printed at the top of each task
log in the old implementation. emitTaskPreamble emits the working directory,
command, and any gitte-injected env vars (project env, env_when, feature
gates) before the command starts, making logs self-contained for debugging.
Fix copyToClipboardOrFile to try native clipboard tools before OSC 52.
Native tools provide a real exit-code signal; OSC 52 has no feedback
mechanism and silently succeeds even in terminals that do not support it.
OSC 52 is now used as a best-effort fallback for SSH sessions and reports
a distinct "sent via OSC 52 (terminal clipboard)" toast message.
* refactor(actions): split clipboard and save-to-file into separate keybindings
c: copies to clipboard (native tools → OSC 52, errors if nothing available).
w: always writes a temp file and shows the path.
Removes the silent fallback where clipboard failure would silently produce a
file instead, making the two operations explicit and independently reachable.1 parent ad8c000 commit 00338b2
2 files changed
Lines changed: 87 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| 278 | + | |
| 279 | + | |
277 | 280 | | |
278 | 281 | | |
279 | 282 | | |
| |||
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
298 | 351 | | |
299 | 352 | | |
300 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
817 | | - | |
818 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
819 | 819 | | |
820 | | - | |
821 | | - | |
| 820 | + | |
| 821 | + | |
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
829 | 842 | | |
830 | 843 | | |
831 | 844 | | |
| |||
1146 | 1159 | | |
1147 | 1160 | | |
1148 | 1161 | | |
| 1162 | + | |
1149 | 1163 | | |
1150 | 1164 | | |
1151 | 1165 | | |
| |||
1529 | 1543 | | |
1530 | 1544 | | |
1531 | 1545 | | |
1532 | | - | |
| 1546 | + | |
1533 | 1547 | | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
| 1548 | + | |
| 1549 | + | |
1537 | 1550 | | |
1538 | 1551 | | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
1546 | | - | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
1547 | 1556 | | |
1548 | | - | |
| 1557 | + | |
1549 | 1558 | | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
1553 | 1565 | | |
1554 | 1566 | | |
1555 | 1567 | | |
| |||
1616 | 1628 | | |
1617 | 1629 | | |
1618 | 1630 | | |
1619 | | - | |
| 1631 | + | |
1620 | 1632 | | |
1621 | 1633 | | |
1622 | 1634 | | |
| |||
0 commit comments