Commit graph

405 commits

Author SHA1 Message Date
9b827fc001 Merge pull request 'tui: re-probe chain height while the node screen is up' (#181) from wt/tui-sync-status into main
All checks were successful
android-ci / android (push) Successful in 12m44s
ci / test (push) Successful in 13m24s
ci / sdk (push) Successful in 1m29s
Reviewed-on: #181
2026-10-11 20:28:28 +00:00
agent
99581bec5e
tui: re-probe chain height while the node screen is up
All checks were successful
ci / test (pull_request) Successful in 14m16s
ci / sdk (pull_request) Successful in 1m28s
The F7 NODE row kept the height from child start. Ctrl-R only
re-read that cache, so a syncing daemon looked frozen. Poll
wallet_child_refresh off the UI thread and copy the answer back.
2026-10-11 16:12:38 -04:00
a0b79d457d Merge pull request 'release: reproducible builds and signed assets' (#180) from repro-builds-and-signing into main
All checks were successful
android-ci / android (push) Successful in 12m39s
ci / test (push) Successful in 13m29s
ci / sdk (push) Successful in 1m21s
Reviewed-on: #180
2026-10-11 17:21:13 +00:00
agent
601f640f78
release: reproducible builds, and sign every asset
All checks were successful
android-ci / android (pull_request) Successful in 12m34s
ci / test (pull_request) Successful in 13m28s
ci / sdk (pull_request) Successful in 1m13s
"The source is public" is not a check anyone can run, and against a Tor +
Monero tool the surviving objection is that the released binary might not be
that source. This makes the build checkable instead of trusted.

- scripts/reproducible-build.sh is the single definition of a release build:
  digest-pinned builder image, fixed in-container paths, SOURCE_DATE_EPOCH
  from the released commit, --locked, its own apt build deps, and RUSTFLAGS
  replaced rather than extended. The fixed paths are load-bearing: rustc's
  --remap-path-prefix cannot reach absolute paths compiled in by a C
  toolchain, and this graph always has one (rusqlite compiles OpenSSL from
  vendored sources; the default cuprate-daemon adds RandomX and cmake). It
  also records toolchain versions in build-info, because the apt build deps
  are not digest-pinned the way the image is.
- release.yml pins the image by digest, resolves SOURCE_DATE_EPOCH from the
  tag's commit, runs that recipe, and uploads build-info-<target>.txt beside
  the binary. The cargo target volume is created per run and removed, so the
  published artifact cannot come out of a cache that a verifier does not have.
- scripts/verify-reproducible.sh rebuilds a tag in the same pinned image and
  compares bytes against the release asset. Two fresh builds of the same tree
  in that image produce identical sha256.
- scripts/sign-release.sh signs with minisign and verifies its own signature
  against the committed public key. The publish job signs BEFORE publishing
  and fails closed without MINISIGN_SECRET_KEY, so nothing unsigned reaches
  the release page: an unsigned release is indistinguishable from a signed
  one to anyone who is not checking. Checked: signature accepted by an
  independent minisign -V, a tampered file rejected, a missing key refused,
  a missing public key refused.
- build-release-local.sh runs the same container and the same recipe. A host
  cargo build would publish a hash nobody could reproduce, which is worse
  than having no fallback at all.
- docs/VERIFY.md is the verifier-facing walkthrough: the dependency graph and
  where its HTTP actually comes from, the wallet's real seed-read exposure,
  the rebuild check, the signature check, and an explicit list of what none
  of it proves.
- Cargo.toml repository: point at the Forgejo instance that hosts this and
  builds its releases.

Needs a MINISIGN_SECRET_KEY secret before the next release; without it the
publish job stops by design. docs/RELEASING.md has the keygen procedure.
2026-10-11 12:57:40 -04:00
1031092192 Merge pull request 'ci: build the default graph on Rust 1.98, not 1.91' (#179) from onionwire/ci-rust-198 into main
All checks were successful
android-ci / android (push) Successful in 12m45s
ci / test (push) Successful in 13m49s
ci / sdk (push) Successful in 1m22s
v0.4.0
Reviewed-on: #179
2026-10-09 00:45:26 +00:00
agent
7391c5b7a4
ci: build the default graph on Rust 1.98, not 1.91
All checks were successful
android-ci / android (pull_request) Successful in 12m6s
ci / test (pull_request) Successful in 30m41s
ci / sdk (pull_request) Successful in 14m52s
`cuprate-daemon` is a default feature, so `cargo test --locked` in the Pi CI
job compiles `tapes`. That crate calls `VecDeque::pop_front_if`, stable only
since 1.93. `rust:1.91-bookworm` dies with `error[E0658]: use of unstable
library feature 'vec_deque_pop_if'` after the rest of the graph has already
built. The Android workflows were already on 1.98 for this; ci.yml and
release.yml were left on 1.91 when the feature was off, and that is no longer
true.

`rust-version` moves with the image. cargo checks it before features, so a
1.91 compiler must be refused up front instead of fifteen minutes into
`tapes`. `--no-default-features` would still compile on 1.91; the declared
floor is the default build's floor, which is what CI and `cargo build` run.
2026-10-08 17:41:22 -04:00
d89539e8b0 Merge pull request 'tui: drop the F9 menu that restates F6 and F7' (#178) from onionwire/t_7121b6ba-onionwire-tui-drop-the-menu-that-restate into main
Some checks failed
ci / test (push) Failing after 20s
ci / sdk (push) Successful in 1m31s
android-ci / android (push) Successful in 12m45s
Reviewed-on: #178
2026-10-08 21:24:42 +00:00
174923f80f Merge pull request 'tui: the Cuprate start path answers get_info, and the Linux TUI includes it' (#177) from onionwire/t_6f94e378-onionwire-tui-cuprate-start-path-must-la into main
Some checks failed
ci / test (push) Failing after 25s
ci / sdk (push) Successful in 7s
android-ci / android (push) Successful in 12m16s
Reviewed-on: #177
2026-10-08 21:24:23 +00:00
agent
14a0d22b20
ci: install cmake for the default Cuprate build
Some checks failed
ci / test (pull_request) Failing after 52s
ci / sdk (pull_request) Successful in 1m34s
android-ci / android (pull_request) Successful in 11m50s
RandomX's cmake-rs build script panics with "is cmake not installed?"
in the rust:bookworm job container once cuprate-daemon is a default
feature. Install cmake and build-essential in the root test, release,
and fuzz containers. Android jobs already did this.
2026-10-08 11:34:44 -04:00
agent
4e13242a44
tui: drop the F9 menu that restates F6 and F7
All checks were successful
ci / test (pull_request) Successful in 7m40s
ci / sdk (pull_request) Successful in 1m42s
The Wallets & Settings screen only named keys that already work. F6 is the
wallet, F7 is the node, and p on the roster or chat opens peer payments.
Profile, backup and wipe stay composer commands, named in help.
2026-10-08 11:03:28 -04:00
agent
a466c43764
tui: the Cuprate start path answers get_info, and the Linux TUI includes it
Some checks failed
ci / test (pull_request) Failing after 2m50s
ci / sdk (pull_request) Successful in 1m23s
android-ci / android (pull_request) Successful in 12m40s
Node::start_wallet_child is the call the TUI makes. The test stores an
in-process testnet source, starts the child, and checks the typed daemon
client's get_info. It does not bootstrap Tor.

cuprate-daemon is now in the Linux TUI default, so a release build of the
onionwire bin links the daemon with no extra feature flag. A build with
--no-default-features still refuses with NO_FEATURE_MSG. cuprated keeps
default-features = false so Cuprate's arti feature cannot pull arti-client
0.44 next to OnionWire's 0.46.

Cargo.lock is unchanged: cuprated was already an optional dependency.
2026-10-08 10:59:45 -04:00
c550a197ac Merge pull request 'tui: F7 can save and start an app-owned chain source' (#170) from onionwire/t_fcd38efc-onionwire-tui-f7-can-save-and-start-an-a into main
All checks were successful
ci / test (push) Successful in 6m45s
ci / sdk (push) Successful in 1m25s
android-ci / android (push) Successful in 12m6s
Reviewed-on: #170
2026-09-28 05:09:45 +00:00
agent
1e3eceabcb
docs: the F7 save gate and the app-owned chain source
All checks were successful
ci / test (pull_request) Successful in 6m49s
ci / sdk (pull_request) Successful in 1m25s
TUI.md: the `last` line's shape when one half of a save is refused, why an
app-owned source saves with an empty `url` while a typed endpoint with no login
is still refused, and the wording the `chain` row carries in a build without
`cuprate-daemon`.

WALLET.md: the same gate from the node's side, and the start contract — a start
that fails part way stops what it spawned and leaves the chain datadir as the
thing a retry reuses.
2026-09-27 23:16:35 -04:00
agent
6c1fc5008a
wallet_child: one contract for a start that fails part way
Settle the contract the red feature-gated test was fighting, and make the code
and both tests express it: a start that fails after the chain daemon came up is
all or nothing, the same contract
node::tests::a_missing_binary_fails_the_start_and_leaves_no_child asserts one
level up. A daemon left running behind an error has no owner (the caller gets
the error back, not the client), no handle to stop it, and holds 18081 against
the next start; what a retry reuses is the chain datadir on disk, never a
process that outlived its owner. start_with_creds already behaved that way, so
this states the contract where the stop happens rather than changing it.

in_process_source_launches_a_daemon_and_stop_shuts_it_down was red because its
fake monero-wallet-rpc never binds the port its own readiness gate probes:
start() returns that error, the test discarded it with `let _ =`, and it then
asserted the daemon had survived a failed start. It now holds the published
port the way the module's other start tests do
(test_support::PublishedPortHold) and expects the start to succeed, with every
assertion it had kept. The failure path gets its own test instead, which pins
the tear-down: neither child running, the daemon's port closed, the chain
datadir kept.
2026-09-27 23:16:30 -04:00
agent
c776ea3e0c
tui: the chain row says when this build has no in-process daemon
cuprate::available() was never consulted in the TUI, so the 'chain' row
offered 'in-process node · cuprate in this app' in a build whose only possible
answer is cuprate::NO_FEATURE_MSG. The row now carries that wording where the
choice is made, the same way prune_display()/network_display() carry theirs.
The choice stays in the picker: builds with the feature exist, and a stored
in-process source must still be readable.
2026-09-27 23:16:10 -04:00
agent
c877375ea5
tui: an app-owned chain source saves without an external wallet RPC
A save on F7 ran the wallet-config write first and returned early on its
error, so an empty 'url' row failed the whole save: 'wallet RPC endpoint
required'. That refusal belongs to Wallet::from_config and it is about an
externally run monero-wallet-rpc; an app-owned chain source (local monerod,
in-process Cuprate) spawns its own child with generated creds and a port it
picked, and Node::start_wallet_child_with replaces the stored client after
the spawn, so the url/login rows describe no endpoint the app dials.

- an empty endpoint on an app-owned source no longer vetoes the chain-source
  write; the validator itself is untouched, and a *typed* endpoint with no
  login is still refused
- both halves of a save are attempted and reported on one line shape, so a
  wallet-config refusal cannot silently drop a chain source the user picked
2026-09-27 23:15:53 -04:00
02f8e4d914 Merge pull request 'tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet' (#169) from onionwire/f7-node-setup into main
All checks were successful
ci / test (push) Successful in 7m8s
ci / sdk (push) Successful in 1m19s
android-ci / android (push) Successful in 13m45s
v0.3.0
Reviewed-on: #169
2026-09-28 00:43:14 +00:00
06367b2949 Merge pull request 'ci: skip superseded runs, move fuzz to nightly, trim the android PR trigger' (#168) from ci/trim-redundant-runs into main
Some checks failed
ci / test (push) Failing after 47s
ci / sdk (push) Successful in 10s
android-ci / android (push) Successful in 13m36s
Reviewed-on: #168
2026-09-28 00:42:46 +00:00
agent
5cdfbacf10
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet
All checks were successful
ci / test (pull_request) Successful in 7m20s
ci / sdk (pull_request) Successful in 1m45s
android-ci / android (pull_request) Successful in 13m36s
ci / fuzz (pull_request) Successful in 5m29s
The chain source was reachable from three places and configured from none of
them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process
choice, the `F9` menu showed the state and named keys that edited it, and
`Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only
way to point the app at a Monero node — had **no TUI caller at all** (Kotlin
only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7.

F7 (`WalletSetupConfig`) is now the one screen that sets up the node:

- The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the
  path; `set_local_monerod` delegates with the derived default, so an existing
  install keeps the store it already has. An empty datadir is refused rather
  than silently replaced — a store that moved unasked looks like a vanished
  chain and resyncs somewhere the user did not choose.
- The `network` row is new: it carries the Cuprate mainnet/testnet choice that
  `F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet
  reads `unvalidated` before it is picked.
- A `NODE` section shows the live `Node::wallet_child_status` line (state, chain
  source, `sync h/t`, last error) and the last save/test answer. It is the
  node's answer, never the draft above it, and `Ctrl-R` re-reads it.
- `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local
  source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child`
  / `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a
  wallet with no stored passphrase still reaches the unlock prompt.

F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet
again (receive, balance, transfers, create/import) — and its footer points at
`F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and
`F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and
the `p` probe handler are deleted rather than left dead.

The node's own keys are named in the body, on the section they act on: at 80
columns the footer has room for one group and the status line already spends
half the width, which is the same reason the login row names `Ctrl-U`.

Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real
key path and the real node — the typed datadir reaching `ChainSource::Local`, an
empty one being refused with nothing written, the live row on open, `Ctrl-S`
saving then reporting the node's own refusal, the in-process network pick
reaching the store, and F6 no longer owning keys it does not handle.
`tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it
asserted before no longer work.
2026-09-27 20:06:51 -04:00
agent
a37712f3af
tui: F7 wallet setup — RPC endpoint and chain source on screen
`wallet::NOT_CONFIGURED_MSG` has always said "open F7 to set it up" and there
was no F7. This is that screen.

- `FunctionKey::Setup` on `F7`, live on Main, the settings menu and peer
  payments, same invariant `F9` follows.
- `Screen::WalletSetupConfig` carries `WalletSetupConfigState`: a snapshot of
  plain data taken when the screen opens, never a handle onto `Node`.
- Rows: the wallet RPC endpoint and its login (never rendered back — the row
  says `hidden · set`, `Debug` redacts it), the view-only toggle, and a chain
  picker over all four `ChainSource` cases with their own fields.
- `Node::set_remote_daemon` / `set_local_monerod` / `set_receive_only`, so the
  TUI can reach what only the Android API could, plus `F6`'s in-process source.
- An untouched chain row is not written, so an F7 save cannot silently undo the
  in-process choice; picking a remote daemon says who is trusted in the same
  frame, one line, lowercase.
- `Ctrl-T` tests the endpoint and shows the sanitized `PingResult::line()`.
  Saving never dials. A rejected form writes nothing — the node validates.
- Docs that claimed there is no F7 (`docs/TUI.md`, `docs/WALLET.md`) now
  describe the screen; the settings menu's `endpoint` row names the key.

(cherry picked from commit a48d40bc4e)
2026-09-27 19:23:51 -04:00
agent
404ceea0f8
ci: skip superseded runs, move fuzz to nightly, trim the android PR trigger
All checks were successful
ci / test (pull_request) Successful in 6m33s
ci / sdk (pull_request) Successful in 1m27s
android-ci / android (pull_request) Successful in 12m47s
Three sources of wasted Pi time, measured over a two-week window
(353 workflow runs, 694 job runs): ~78% of CI wall-clock was spent on
work that did not need to happen.

1. Nothing was ever cancelled. Every `concurrency:` block in the repo
   had `cancel-in-progress: false`, and 279 of 353 runs sat in the
   queue behind a newer commit on the same branch. The comment
   justifying it ("shared the container name `onionwire-ci`") was
   stale — the name has been per-run-id for a while — but the real
   constraint is the shared cargo target volume, which two concurrent
   writers corrupt (`Permission denied (os error 13)` on
   /target/debug/deps). So the flag stays false and superseded runs
   instead stand down at a new gate: compare GITHUB_SHA against the
   remote branch tip and skip. Seconds, not minutes, and it cannot
   release the concurrency group into a volume race. Added to
   ci.yml (test, sdk) and android-ci.yml (android).

   Verified against the run history: Forgejo's pull_request GITHUB_SHA
   is the branch head, never a synthetic merge commit (245/245 recorded
   PR runs match a refs/pull/*/head tip), so the gate cannot skip a
   live run. It fails open — an unresolvable ref runs the job. 232 of
   477 historical PR runs would have been skipped.

2. `fuzz` ran on almost every push. A job cannot narrow a
   workflow-level path filter, so `fuzz/**` sat in ci.yml's list
   beside `src/**` and `crates/**`: 80 of 84 recorded runs touched
   nothing in fuzz/, each paying a nightly toolchain install and
   `cargo install cargo-fuzz` for 15 seconds of actual fuzzing. Moved
   to its own workflow, schedule-only (03:30 UTC, off the arti-watch
   slot) plus workflow_dispatch. The build/run single-container fix
   and the PATH export from #106/#107 come along unchanged.

3. android-ci built a full APK for commits that touched no android/
   file — 95 of 143 runs, at ~11 minutes each. The PR trigger now
   covers android/**, crates/onionwire-sdk/**, Cargo.toml, Cargo.lock
   and the build script. The push-to-main trigger keeps src/** and
   crates/**, so every merge still runs the in-APK checks that earn
   their keep (the target_max_memory marker gate, the .so listing, the
   sha256 round-trip) — a Rust-only PR now finds out at merge instead
   of before it, and nothing reaches a release untested.

Also drops `fetch-depth: 0` from android-ci: nothing in the build
reads git history (PUBLISH_TAG comes from the environment).

ci.yml's `push: [main]` trigger is unchanged. It re-tests trees a PR
already tested identically (73 job runs in the window), but branch
protection is empty, so it is not a merge gate — it is the "CI green
on main" signal docs/RELEASING.md's readiness gate reads, and a merge
commit has a different sha so statuses do not carry over. The
staleness gate already removes most of its cost.

docs/RELEASING.md describes all of the above; its android-ci path
list and its fuzz-job account were both wrong after this change.
2026-09-27 15:34:58 -04:00
9f3745cd1d Merge pull request 'tui: the F6 wallet screen draws its body in the slot that has the height' (#167) from onionwire/t_716400d7-onionwire-tui-the-f6-wallet-screen-clips into main
Some checks failed
android-ci / android (push) Has been cancelled
ci / test (push) Failing after 29s
ci / sdk (push) Successful in 1m15s
ci / fuzz (push) Successful in 5m15s
v0.2.0
Reviewed-on: #167
2026-09-27 18:45:13 +00:00
d93e9c3276 Merge branch 'main' into onionwire/t_716400d7-onionwire-tui-the-f6-wallet-screen-clips
Some checks failed
android-ci / android (pull_request) Has been cancelled
ci / test (pull_request) Failing after 42s
ci / sdk (pull_request) Successful in 1m45s
ci / fuzz (pull_request) Successful in 5m10s
2026-09-27 18:45:04 +00:00
dca69bad6f Merge pull request 'tests/tui_spec: remove the NO_COLOR env race behind the flaky suite' (#164) from onionwire/t_75caf868-onionwire-tui-tests-no_color-env-race-ma into main
Some checks failed
ci / test (push) Failing after 26s
ci / sdk (push) Successful in 1m16s
ci / fuzz (push) Successful in 4m54s
android-ci / android (push) Successful in 10m25s
Reviewed-on: #164
2026-09-27 18:08:48 +00:00
0149e105b0 Merge branch 'main' into onionwire/t_75caf868-onionwire-tui-tests-no_color-env-race-ma
Some checks failed
ci / test (pull_request) Failing after 29s
ci / sdk (pull_request) Successful in 1m11s
ci / fuzz (pull_request) Successful in 5m10s
android-ci / android (pull_request) Successful in 12m5s
2026-09-27 18:08:39 +00:00
agent
3bec3bffbf
tui: the F6 wallet screen draws its body in the slot that has the height
All checks were successful
android-ci / android (pull_request) Successful in 10m37s
ci / test (pull_request) Successful in 6m46s
ci / sdk (pull_request) Successful in 1m17s
ci / fuzz (pull_request) Successful in 5m1s
2026-09-26 23:35:31 -04:00
b78e0fcb55 Merge pull request 'tui: a fresh install must not open on the Monero spend-authority warning' (#162) from onionwire/t_6aa61cf8-onionwire-tui-a-fresh-install-must-not-o into main
Some checks failed
android-ci / android (push) Successful in 10m51s
ci / test (push) Failing after 36s
ci / sdk (push) Successful in 1m9s
ci / fuzz (push) Successful in 4m49s
Reviewed-on: #162
2026-09-27 03:34:52 +00:00
fa58930678 Merge branch 'main' into onionwire/t_6aa61cf8-onionwire-tui-a-fresh-install-must-not-o
Some checks failed
android-ci / android (pull_request) Successful in 11m8s
ci / test (pull_request) Failing after 39s
ci / sdk (pull_request) Successful in 1m34s
ci / fuzz (pull_request) Successful in 5m0s
2026-09-27 03:34:38 +00:00
73130b443f Merge pull request 'tui: F6 opens the wallet screen instead of exiting when no wallet is configured' (#161) from onionwire/t_da08817e-onionwire-tui-f6-exits-the-app-when-no-w into main
All checks were successful
android-ci / android (push) Successful in 10m31s
ci / test (push) Successful in 6m17s
ci / sdk (push) Successful in 1m9s
ci / fuzz (push) Successful in 4m54s
Reviewed-on: #161
2026-09-27 02:58:22 +00:00
4ff5af3fab Merge branch 'main' into onionwire/t_da08817e-onionwire-tui-f6-exits-the-app-when-no-w
Some checks failed
android-ci / android (pull_request) Has been cancelled
ci / test (pull_request) Successful in 6m6s
ci / sdk (pull_request) Successful in 1m21s
ci / fuzz (pull_request) Successful in 5m3s
2026-09-27 02:58:10 +00:00
863adc22dd Merge pull request 'docs: TUI wallet surfaces — presentation and flow review (report only)' (#160) from onionwire/t_e4eb38a8-onionwire-tui-presentation-flow-review-o into main
Reviewed-on: #160
2026-09-27 02:51:19 +00:00
agent
a9cb0d5758 tests/tui_spec: remove the NO_COLOR env race behind the flaky suite
Some checks failed
android-ci / android (pull_request) Has been cancelled
ci / test (pull_request) Successful in 6m23s
ci / sdk (pull_request) Successful in 1m17s
ci / fuzz (pull_request) Successful in 5m6s
`alert_line_prefixes_when_no_color` flipped the process-global `NO_COLOR`
without the `ASCII_ENV` mutex the other env-touching tests in this binary
hold, so a concurrent `remove_var("NO_COLOR")` could win and make
`alert_line()` resolve to Rgb/Ansi16 — the `! ` assertion then failed on an
otherwise green run (measured 1/12 runs at cc1201d).

Inject the colour mode instead of reading the environment in the test:

* `tui::alert_line_for_mode(mode, msg, width)` — `alert_line()` is now a
  one-line delegate passing `color_mode()`, so production behaviour is
  unchanged and the no-colour path is asserted without touching the env.
* The test now pins all three shapes of that path: `None` prefixes `! `,
  Rgb leaves the message verbatim, and an already-prefixed alert is not
  double-prefixed.

Also fix the second, same-class race the 20x repeat surfaced:
`wallets_settings_menu_frame_shows_the_shipped_footer` compares a rendered
frame against `status_footer_phased` computed moments earlier, and both read
`ascii_chrome()`/`color_mode()` live — a concurrent `ONIONWIRE_ASCII=1` made
the two sides disagree (✓/… vs ok/...). It now takes the same `ASCII_ENV`
lock and forces the unicode mode.

Evidence (TMPDIR=/home/lancelot/.hermes/tmp/onionwire-tui):
* cargo test --locked -> exit 0, 35 suites, 472 passed, 0 failed, 4 ignored
* cargo clippy --locked --all-targets -- -D warnings -> exit 0
* cargo test --locked --test tui_spec x60 -> 60 ok, 0 failures
* teeth: with the `! ` prefix removed from the None path, the test fails
  ("expected '! ' prefix in None mode: \"peer down\"") — reverted.
* ONIONWIRE_ASCII=1 cargo test --locked --test tui_spec -> 37 passed (no
  unlocked test's outcome depends on the ambient value)
* rustfmt --edition 2024 --check on both files: only the inherited hunks
  (src/tui.rs 16 == HEAD 16; tests/tui_spec.rs 3 vs HEAD 4, one inherited
  hunk reformatted away by this edit)
2026-09-26 22:46:43 -04:00
agent
cc1201d876
tui: a fresh install opens on the main view, not the spend-authority warning
All checks were successful
android-ci / android (pull_request) Successful in 10m37s
ci / test (pull_request) Successful in 6m20s
ci / sdk (pull_request) Successful in 1m20s
ci / fuzz (pull_request) Successful in 5m13s
2026-09-26 22:29:59 -04:00
rust-dev
5fcd4ed643
tui: F6 opens the wallet screen instead of exiting when no wallet is configured
All checks were successful
ci / test (pull_request) Successful in 6m44s
ci / sdk (pull_request) Successful in 1m33s
android-ci / android (pull_request) Successful in 12m2s
ci / fuzz (pull_request) Successful in 18m34s
App::open_wallet propagated the node's "no receive address" error with `?`,
so on an install with no wallet RPC configured and no profile xmr the Err
travelled out of App::run and out of boot(), and the process exited 1. The
same call already degrades to an empty address on F9.

Degrade it here too, and leave a status note that names the way forward:
this screen's own `c`/`i` create/import keys plus ONIONWIRE_WALLET_RPC.
A configured-but-failing endpoint gets the existing NOT_CONNECTED_MSG
instead of the unconfigured copy. balance and transfers are unchanged.

Tests: F6 on a bare install opens Screen::Wallet with an empty receive_addr,
a status note, and no error text in the frame drawn through App::draw; the
frame after Esc back to Main really renders the note. The control case (a
profile xmr address) still fills receive_addr and sets no note. The existing
offset-notice test asserted the propagation itself and now asserts the screen
it reaches instead.
2026-09-26 22:15:51 -04:00
tui-design
041179eb89
docs: presentation and flow review of the TUI wallet surfaces
Report-only audit of the wallet screens at a1f5c878: rendered frames at
80x24/120x40/200x60 for the first-run frame, the F6 wallet screen, the
F6 -> w wallet list, the create-spend-wallet gate and the F9 menu, plus a
findings table located by function and line.

No source file changed.
2026-09-26 22:07:15 -04:00
a1f5c878d3 Merge pull request 'wallet: optional seed-offset passphrase on import' (#156) from onionwire/t_dc9b74a6-onionwire-wallet-optional-seed-offset-pa into main
All checks were successful
ci / test (push) Successful in 6m21s
ci / sdk (push) Successful in 1m29s
android-ci / android (push) Successful in 12m27s
ci / fuzz (push) Successful in 5m6s
Reviewed-on: #156
2026-09-25 22:22:57 +00:00
agent
f6a7daf892
wallet: optional seed-offset passphrase on import
All checks were successful
ci / test (pull_request) Successful in 6m21s
ci / sdk (pull_request) Successful in 1m28s
android-ci / android (pull_request) Successful in 12m54s
ci / fuzz (pull_request) Successful in 18m31s
Monero's `restore_deterministic_wallet` takes a `seed_offset`: a second
spend secret mixed into the 25 words at restore time, so the same words
with a different offset open a different wallet. It is not the wallet-file
passphrase and must never be sealed, stored, logged or put on an argv.

- `Wallet::restore_wallet` gains `seed_offset: Option<&str>`: None, empty
  or whitespace-only leaves the field out of the JSON entirely; otherwise
  the ends are trimmed and it is sent beside the seed.
- `Node::wallet_restore` passes it through and still seals only the file
  passphrase.
- SDK: `import_wallet` keeps its signature (None) and
  `import_wallet_with_offset` is added (Kotlin `importWalletWithOffset`).
- TUI: a new `ImportOffset` step between the seed and the file passphrase
  (blank Enter skips, a real one is confirmed, a mismatch never dials), and
  `ImportOffsetSeen` after a successful import that used one -- Esc cannot
  leave it, only SEEN, and the offset is not drawn anywhere.
- Docs: WALLET.md, THREAT_MODEL.md, TUI.md, one README sentence.
2026-09-25 00:42:44 -04:00
6d815b0fe8 Merge pull request 'wallet: wait for listeners before treating connect refusal as an error' (#155) from onionwire/t_c8fe0549-onionwire-wallet-start-waits-for-the-dae into main
All checks were successful
android-ci / android (push) Successful in 11m35s
ci / test (push) Successful in 5m48s
ci / sdk (push) Successful in 1m14s
ci / fuzz (push) Successful in 5m1s
Reviewed-on: #155
2026-09-24 00:44:44 +00:00
agent
2f3d5d69c3
docs: start waits for the daemon and wallet RPC listeners
Some checks failed
android-ci / android (pull_request) Has been cancelled
ci / test (pull_request) Successful in 8m43s
ci / sdk (pull_request) Successful in 1m16s
ci / fuzz (pull_request) Successful in 5m21s
2026-09-23 20:37:13 -04:00
agent
4136f36dd4
wallet: a connect refusal while coming up is not a status error 2026-09-23 20:37:13 -04:00
agent
081bdfac3e
wallet: wait for monero-wallet-rpc to accept before publishing the child 2026-09-23 20:37:13 -04:00
agent
f5e310fdf4
wallet: wait for the daemon RPC before spawning monero-wallet-rpc 2026-09-23 20:37:13 -04:00
rust-dev
052879fa39
wallet: share the loopback accept wait the SOCKS path already uses 2026-09-23 20:37:13 -04:00
9322d885f8 Merge pull request 'android: do not paint a connect refusal while the wallet is connecting' (#154) from onionwire/t_1b021834-onionwire-android-do-not-paint-a-wallet into main
All checks were successful
android-ci / android (push) Successful in 11m26s
Reviewed-on: #154
2026-09-24 00:08:52 +00:00
agent
971d8b3894
android: reload wallet reads when the child starts answering
All checks were successful
android-ci / android (pull_request) Successful in 12m46s
2026-09-23 19:50:18 -04:00
agent
9eb054b10f
android: do not paint a connect refusal while the wallet is connecting 2026-09-23 19:48:52 -04:00
25e4c67181 Merge pull request 'wallet: land the file-name picker fix and the wallet manager on main (from t_67879b98)' (#153) from onionwire/t_67879b98-wallet-actually-open-the-wallet-file-and into main
Some checks failed
android-ci / android (push) Has been cancelled
ci / test (push) Successful in 6m38s
ci / sdk (push) Successful in 1m18s
ci / fuzz (push) Has been cancelled
v0.1.0
Reviewed-on: #153
2026-09-23 02:33:38 +00:00
685ce89b29 Merge pull request 'wallet: the file-name picker must consult the disk, not only the catalogue' (#151) from onionwire/t_81deabb5-wallet-the-file-name-picker-must-consult into onionwire/t_67879b98-wallet-actually-open-the-wallet-file-and
Some checks failed
android-ci / android (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
ci / fuzz (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
Reviewed-on: #151
2026-09-23 00:46:47 +00:00
c1fda00080 Merge branch 'onionwire/t_67879b98-wallet-actually-open-the-wallet-file-and' into onionwire/t_81deabb5-wallet-the-file-name-picker-must-consult
All checks were successful
ci / test (pull_request) Successful in 6m39s
ci / sdk (pull_request) Successful in 1m49s
ci / fuzz (pull_request) Successful in 7m1s
android-ci / android (pull_request) Successful in 19m1s
2026-09-23 00:46:34 +00:00
3ddd370b3d Merge pull request 'android: ask for the wallet passphrase, and stop printing RPC errors' (#150) from onionwire/t_9ef8561c-wallet-manager-ask-for-the-passphrase-an into onionwire/t_67879b98-wallet-actually-open-the-wallet-file-and
Reviewed-on: #150
2026-09-23 00:41:47 +00:00