Commit 6e0318e
feat: auto-detect container platform from GPU agent architecture
Added agent architecture information to share public API response
and use it to automatically set correct container platform when
creating studio environments.
Changes:
1. Backend API:
- Added agent_arch field to PublicShareInfo response
- Join worker and agent tables to get architecture info
2. Go Client:
- Added AgentArch field to SharePublicInfo type
- Auto-set platform based on GPU agent architecture
- Prioritize agent arch over platform flag for library downloads
- Log agent architecture in share link resolution
This ensures:
- ARM-based GPU workers (e.g., NVIDIA Jetson) get linux/arm64 containers
- x86_64 GPU workers get linux/amd64 containers
- Container architecture matches GPU endpoint architecture
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent e345abf commit 6e0318e
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | 269 | | |
| |||
472 | 474 | | |
473 | 475 | | |
474 | 476 | | |
| 477 | + | |
475 | 478 | | |
476 | 479 | | |
477 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
478 | 488 | | |
479 | 489 | | |
480 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
0 commit comments