Commit 085c991
Give pasted images a timestamped filename (#1750)
Browsers name a pasted screenshot image.png, so every paste landed on the
same path in the agent's working directory and clobbered the previous one.
Rename those to portal_pasted_image_YYMMDD_HHMMSS.<ext> at the paste site,
so everything downstream — the upload list, the agent-facing filename —
follows. Only files whose stem is exactly "image" are renamed; a paste
carrying a real filename keeps it.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 1e9cf8c commit 085c991
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
182 | 212 | | |
183 | 213 | | |
184 | 214 | | |
| |||
554 | 584 | | |
555 | 585 | | |
556 | 586 | | |
| 587 | + | |
557 | 588 | | |
558 | 589 | | |
559 | 590 | | |
| |||
0 commit comments