Decide (post-v5): fix/undo/sync command model and exit 0 when there is nothing to undo
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 12/100
Piste de recherche
This is a design decision, not a ready change: the maintainer must first settle the new command model and the exit codes for an empty project. Read the per-command table in #1088 and the tests the issue names (in_process_rollback_hosted.rs, mode_migration_vlt.rs, e2e_redirect_vlt_build.rs around L1185-1210). Done means a maintainer decision is recorded, and only then can the tests that pin exit 1 be updated.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
[agent] Split out of #1088. The maintainer's 2026-10-09 triage narrowed #1088's v5 scope to "a bare scan/get keeps the project's mode" (PR #1317). The other two questions from #1088 are not release requirements, so they are tracked here, without v5-blocker.
Q1, option 3: new command model (next major)
| New | Replaces |
|---|---|
read-only scan |
today's scan --dry-run |
fix [TARGET…] [--mode M] |
scan (write) and get |
undo [TARGET…] |
rollback, remove and vendor --revert |
sync |
apply, repair and scan --prune |
check |
apply --check and vendor --check |
The old verbs would stay as aliases for one major. This is blocked by the C11/C12 engine split (#843, #894). See #1088 for the full rationale (register C34).
Q2: "nothing to undo" exits differently per command (register C74)
On a project with no patch state (a fresh project, or one that a full rollback just emptied), list, apply and vendor --revert exit 0, but rollback and repair exit 1 (manifest_not_found, and rollback uses the legacy {"status":"error","error":"Manifest not found"} shape). So a second rollback exits 1. #1088 has the per-command table and repro.
The proposal (#1088 option A):
rollbackon an empty project returnsstatus: successwith zero counts.repairon an empty project matchesapply(noManifest, exit 0).remove <target>with no match keeps exit 1 (not_found).
Tests that pin today's exit 1: in_process_rollback_hosted.rs, mode_migration_vlt.rs, e2e_redirect_vlt_build.rs (L1185-1210) and the covgap rollback/repair suites.
Both parts need a maintainer decision before implementation.
- Langage dominant
- Rust
- Étoiles
- 9
- Forks
- 2
- Merge moyen
- 20 h 47 min
- PR mergées (30 j)
- 681
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de SocketDev/socket-patch
-
agent:triaged arch-audit priority:p3 refactor
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
SocketDev/socket-patch#1860 ·
Les mainteneurs répondent en général sous 1 jour
-
agent:triaged arch-audit priority:p3 refactor
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
SocketDev/socket-patch#1838 ·
Les mainteneurs répondent en général sous 1 jour
-
arch-audit refactor
Difficulté 4/5 3-5 jours Accessibilité débutants 54/100
SocketDev/socket-patch#1993 ·
Les mainteneurs répondent en général sous 1 jour
-
arch-audit refactor
Difficulté 3/5 1-2 jours Accessibilité débutants 66/100
SocketDev/socket-patch#1992 ·
Les mainteneurs répondent en général sous 1 jour
-
agent:triaged arch-audit priority:p3 refactor
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
SocketDev/socket-patch#1987 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de SocketDev/socket-patch
Issues similaires
-
docs(metrics): replace stale src/metrics.rs line anchors in dashboard-metrics.md with symbol namesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
vfarcic/dot-agent-deck#2079 ·
Les mainteneurs répondent en général sous 1 jour
-
修改文件名时主键盘上的数字无法输入Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
qingjian-team/qingjian#894 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
rubys/roundhouse#1757 ·
-
[Feature] 侧边栏Agent HTTP请求UA适配Ouverteenhancement user-priority/P3
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
t8y2/dbx#14196 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour