Commit c007398
feat(name): embed agent CLI version in container names
deva--claude-v2.1.204--auth-file-max--proj..hash
Persistent containers pin the image they were created from. When the
image's CLI version moves, the old name matched and deva silently
attached a stale CLI to the same mounted config home — state schema
drift between CLI versions corrupts shared state. A version bump now
produces a distinct name, so a fresh container is created and the stale
one stays visible in deva ps.
- version read from org.opencontainers.image.<agent>_version image
label, cached per run; check_image guarantees the image exists
locally before any name is built
- label-less images keep the bare agent name (backward compatible)
- ps parsing unaffected: the version lives inside the agent segment,
segments still split on double dash
Closes #420
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 4cc3aa8 commit c007398
2 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
932 | 967 | | |
933 | 968 | | |
934 | 969 | | |
| |||
938 | 973 | | |
939 | 974 | | |
940 | 975 | | |
941 | | - | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
942 | 982 | | |
943 | 983 | | |
944 | 984 | | |
| |||
0 commit comments