Skip to content

Commit eb53fbe

Browse files
pRizzcursoragent
andcommitted
docs(35): complete update cli self-update phase
Adds verification report and updates roadmap/state for Phase 35 completion. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 03ecd21 commit eb53fbe

3 files changed

Lines changed: 94 additions & 5 deletions

File tree

.planning/ROADMAP.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Decimal phases appear between their surrounding integers in numeric order.
4646
- [ ] **Phase 32: Make automated (or manually triggered) scripts/github actions in CI for generating and uploading an AWS AMI so that cloud formation/installation can be streamlined and quickened** - TBD
4747
- [ ] **Phase 33: Investigate and implement a way for users that get created and configured in the container are persisted after we update the container** - TBD
4848
- [ ] **Phase 34: Disable Cockpit User-Facing Surface** - TBD
49+
- [x] **Phase 35: Can we add a new update subcommand to update the opencode-cloud binary itself? We might need to be careful with respect to how the binary was installed with which package manager and whether it is the rust or npm binary** - Add update CLI subcommand for self-updating opencode-cloud
4950

5051
## Phase Details
5152

@@ -609,6 +610,19 @@ Plans:
609610
**Details:**
610611
[To be added during planning]
611612

613+
### Phase 35: Can we add a new update subcommand to update the opencode-cloud binary itself? We might need to be careful with respect to how the binary was installed with which package manager and whether it is the rust or npm binary
614+
615+
**Goal:** Add a CLI update subcommand that can reinstall opencode-cloud using the detected install method (cargo or npm) and restart the service afterward.
616+
**Depends on:** Phase 34
617+
**Requirements:** None (enhancement)
618+
**Plans:** 1 plan
619+
620+
Plans:
621+
- [x] 35-01-PLAN.md — Add update CLI subcommand and documentation
622+
623+
**Details:**
624+
Implemented `occ update cli` with install detection, restart flow, and docs guidance.
625+
612626
## Progress
613627

614628
**Execution Order:**
@@ -650,7 +664,8 @@ Phases execute in numeric order: 1 -> 2 -> 3 -> ... -> 28 -> 29 -> 30 -> 31 -> 3
650664
| 32. Make automated (or manually triggered) scripts/github actions in CI for generating and uploading an AWS AMI so that cloud formation/installation can be streamlined and quickened | 0/0 | Not started | - |
651665
| 33. Investigate and implement a way for users that get created and configured in the container are persisted after we update the container | 0/0 | Not started | - |
652666
| 34. Disable Cockpit User-Facing Surface | 0/0 | Not started | - |
667+
| 35. Update opencode-cloud self-update | 1/1 | Complete | 2026-01-31 |
653668

654669
---
655670
*Roadmap created: 2026-01-18*
656-
*Last updated: 2026-01-25 (Phase 18 expanded with prebuilt binary distribution)*
671+
*Last updated: 2026-01-31 (Phase 35 complete: update cli subcommand)*

.planning/STATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ See: .planning/PROJECT.md (updated 2026-01-18)
99

1010
## Current Position
1111

12-
Phase: 21 of 21 (Use opencode Fork with PAM Authentication)
13-
Plan: 2 of 2 in current phase
12+
Phase: 35 of 35 (Update opencode-cloud self-update)
13+
Plan: 1 of 1 in current phase
1414
Status: Phase complete
1515
**Next Phase:** 33 (Investigate and implement a way for users that get created and configured in the container are persisted after we update the container)
16-
Last activity: 2026-01-26 - Executed 21-01, 21-02 (Dockerfile fork installation, broker, PAM config, documentation)
16+
Last activity: 2026-01-31 - Executed 35-01 (opencode-cloud self-update subcommand and docs)
1717

1818
Progress: [##############################] 100%
1919

@@ -22,7 +22,7 @@ Note: Phases 12 (Web Desktop UI) and 13 (Container Security Tools) are DEFERRED.
2222
## Performance Metrics
2323

2424
**Velocity:**
25-
- Total plans completed: 48
25+
- Total plans completed: 49
2626
- Average duration: 5 min
2727
- Total execution time: ~4.5 hours
2828

@@ -245,6 +245,8 @@ Recent decisions affecting current work:
245245
- Phase 32 added: Make automated (or manually triggered) scripts/github actions in CI for generating and uploading an AWS AMI so that cloud formation/installation can be streamlined and quickened
246246
- Phase 33 added: Investigate and implement a way for users that get created and configured in the container are persisted after we update the container
247247
- Phase 34 added: Disable Cockpit user-facing surface (hide UI/CLI/docs, keep code)
248+
- Phase 35 added: Can we add a new update subcommand to update the opencode-cloud binary itself? We might need to be careful with respect to how the binary was installed with which package manager and whether it is the rust or npm binary
249+
- Phase 35 completed: update cli self-update flow and docs
248250

249251
### Blockers/Concerns
250252

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
phase: 35-can-we-add-a-new-update-subcommand-to-update-the-opencode-cloud-binary-itself-we-might-need-to-be-careful-with-respect-to-how-the-binary-was-installed-with-which-package-manager-and-whether-it-is-the-rust-or-npm-binary
3+
verified: 2026-01-31T23:45:39Z
4+
status: passed
5+
score: 3/3 must-haves verified
6+
re_verification:
7+
previous_status: gaps_found
8+
previous_score: 2/3
9+
gaps_closed:
10+
- "Users get a clear error when install method cannot be detected"
11+
gaps_remaining: []
12+
regressions: []
13+
---
14+
15+
# Phase 35: Can we add a new update subcommand to update the opencode-cloud binary itself? We might need to be careful with respect to how the binary was installed with which package manager and whether it is the rust or npm binary Verification Report
16+
17+
**Phase Goal:** Add a new update subcommand that updates the opencode-cloud binary itself, choosing the correct installation method (cargo or npm) when possible and restarting the service afterward. Provide a clear error/help message when the install method cannot be detected.
18+
**Verified:** 2026-01-31T23:45:39Z
19+
**Status:** passed
20+
**Re-verification:** Yes — after gap closure
21+
22+
## Goal Achievement
23+
24+
### Observable Truths
25+
26+
| # | Truth | Status | Evidence |
27+
| --- | ----- | ------ | -------- |
28+
| 1 | Update CLI can re-install opencode-cloud when the install method is known | ✓ VERIFIED | `cmd_update_cli` maps detected install method to `cargo install opencode-cloud` or `npm install -g opencode-cloud`. |
29+
| 2 | Users get a clear error when install method cannot be detected | ✓ VERIFIED | `cmd_update_cli` prints guidance with cargo/npm commands and a note for other package managers when detection fails. |
30+
| 3 | Service restarts after a successful opencode-cloud update | ✓ VERIFIED | `cmd_update_cli` calls `cmd_restart` after update success. |
31+
32+
**Score:** 3/3 truths verified
33+
34+
### Required Artifacts
35+
36+
| Artifact | Expected | Status | Details |
37+
| -------- | -------- | ------ | ------- |
38+
| `packages/cli-rust/src/commands/update.rs` | Update subcommand flow for opencode-cloud binary | ✓ VERIFIED | Exists, substantive implementation, wired via `UpdateCommand::Cli`. |
39+
| `README.md` | User-facing instructions for updating the CLI | ✓ VERIFIED | Usage includes `occ update cli`. |
40+
41+
### Key Link Verification
42+
43+
| From | To | Via | Status | Details |
44+
| ---- | --- | --- | ------ | ------- |
45+
| `cmd_update_cli` | `InstallMethod::run_update` | `detect_install_method()` | ✓ WIRED | Detects method and runs cargo/npm update command. |
46+
| `cmd_update_cli` | `cmd_restart` | restart call | ✓ WIRED | Service restart invoked after update success. |
47+
| `cmd_update_cli` | error guidance | `detect_install_method()` fallback | ✓ WIRED | Guidance includes cargo/npm commands and alternate-package-manager note. |
48+
49+
### Requirements Coverage
50+
51+
| Requirement | Status | Blocking Issue |
52+
| ----------- | ------ | -------------- |
53+
| No Phase 35 requirements found in `REQUIREMENTS.md` | N/A | N/A |
54+
55+
### Anti-Patterns Found
56+
57+
| File | Line | Pattern | Severity | Impact |
58+
| ---- | ---- | ------- | -------- | ------ |
59+
| None | - | - | - | - |
60+
61+
### Human Verification Required
62+
63+
None.
64+
65+
### Gaps Summary
66+
67+
No gaps found. All must-haves are verified.
68+
69+
---
70+
71+
_Verified: 2026-01-31T23:45:39Z_
72+
_Verifier: Claude (gsd-verifier)_

0 commit comments

Comments
 (0)