Commit 448892f
authored
fix(spaces): keep Space emoji/colors stable on artifact re-deploy (#2378)
* fix(spaces): keep Space emoji/colors stable on artifact re-deploy
Re-deploying an existing artifact re-uploaded README.md, which buildReadme regenerates with a random emoji and gradient each time, so the Space's emoji/colors changed on every update. Only push index.html on update; the README (emoji, colors, title) is written once at creation. A genuine recreate (Space deleted on the Hub) still writes a fresh README.
* fix(spaces): seed Space emoji/colors deterministically instead of skipping README
Re-deploys keep a stable emoji/gradient because the README is seeded per artifact (conversationId:artifactIdentifier) rather than randomized, so re-uploading it on every deploy never reshuffles the Space. This also keeps index.html + README on both create and update paths, so a Space recovered from a failed first upload (the self-heal path) still gets its README/config. Verified against the Hub: a no-change re-upload is accepted as an empty commit, not an error.1 parent 9ee91dd commit 448892f
1 file changed
Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
| |||
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | | - | |
| 59 | + | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
| |||
54 | 65 | | |
55 | 66 | | |
56 | 67 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
124 | 135 | | |
125 | 136 | | |
126 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
127 | 143 | | |
128 | 144 | | |
129 | 145 | | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
133 | 149 | | |
134 | | - | |
| 150 | + | |
135 | 151 | | |
136 | 152 | | |
137 | 153 | | |
| |||
0 commit comments