Skip to content

feat: report Talk Calls setup in a health check; 35.0.3:2 → 35.0.3:3 - #186

Merged
MattDHill merged 2 commits into
masterfrom
feat/talk-health
Nov 18, 2026
Merged

MattDHill merged 2 commits into
masterfrom
feat/talk-health

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Adds a Talk Calls health check and widens the signaling URL fallback. Refs #183, where the reporter set Talk Calls to the HPB and nothing happened, with no indication why.

The check (talk-calls, present only while Talk Calls is Coturn or High-performance backend) reports:

  • what the chosen mode is missing, before anything is applied: the service not installed or without its published secret, Coturn without a public domain, the HPB relay without an address, or Nextcloud without an HTTPS address for the signaling URL. These paths previously made the reconcile do nothing and log nothing.
  • why the talk oneshot stopped: Talk app not enabled, a hand-added signaling server blocking HPB setup, or a failed occ call (cleared by a restart, which is when it retries).
  • Waiting for maintenance to finish while a queued task is pending, otherwise Applying Talk settings….
  • success once applied.

reconcileTalk now returns its outcome; the resolvers return the message naming what is missing instead of null. The outcome lives for the daemon chain, so a Talk app disabled after setup is noticed on the next start.

Signaling URL fallback. The host was the Web UI's public domain or else its .local name. It now takes a public domain, then a private domain, then .local, then a LAN IPv4, so a Nextcloud reached only by a private domain or IP gets a signaling server. An IP host gets no /etc/hosts mapping.

Verified on a StartOS box (this build, nextcloud-talk-hpb 2.2.0:0 from beta): the check read Install and start Nextcloud Talk HPB… with the HPB absent, Install and enable the Talk app… once it was installed, success after installing Talk, the blocking-server message with a hand-added signaling server, Install and start Coturn… in Coturn mode without Coturn, success again back in HPB mode, and was absent in Direct mode. Adding a private domain moved the signaling URL from the .local address to https://nc-hpb.home/standalone-signaling/, and creating a Talk room through that domain succeeded (Nextcloud calls the signaling server to create it). The LAN-IPv4 fallback was not exercised.

🤖 Generated with Claude Code

With Talk Calls on Coturn or the HPB, nothing told the user when setup did not
happen: a missing service, secret or address made the reconcile do nothing
without a word, and its other stops went only to the log. A Talk Calls health
check now reports what the chosen mode is missing, why the talk oneshot stopped
(Talk app disabled, a hand-added signaling server, a failed occ call), that it
is waiting for maintenance or applying, or that it succeeded.

The signaling URL also falls back past the .local name: a public domain, then a
private domain, then .local, then a LAN IPv4. A Nextcloud reached only by a
private domain or IP previously got no signaling server at all. An IP host gets
no hosts mapping.

Verified on a StartOS box: the check reports HPB not installed, Talk app
missing, success, a blocking hand-added signaling server, Coturn not installed,
and is absent in Direct mode; adding a private domain moves the signaling URL to
it, and creating a Talk room through it succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for three health-reporting paths:

  1. [P2] Check enabled Talk before returning applied for matching settings (startos/main.ts:1327–1328). Configure Coturn/HPB successfully, then disable/remove Talk and restart without changing the endpoints. The signature shortcut returns applied before readEnabledApps, so the new check stays green even after restart. An incompatible Nextcloud upgrade can reach the same state. The proposal preserves the zero-occ Direct-only shortcut, checks Talk availability before accepting an unchanged active configuration, and records that contract at reconcileTalk.

  2. [P2] Distinguish an unreadable app list from disabled Talk (startos/main.ts:1345–1354). readEnabledApps throws on a failed occ app:list or invalid output. Catching that as {} produces the cached “Install and enable” diagnosis even when Talk is enabled. The proposal returns failed instead, using the existing restart/log-details message.

  3. [P2] Include restart in the disabled-app recovery instruction (startos/main.ts:881). Installing/enabling Talk through Nextcloud does not rebuild this daemon chain or rerun its oneshot. Following the displayed instruction therefore leaves setup unapplied and the check red until a restart. The proposal adds that step in every translation.

Documentation cleanup: remove the contradictory claims that missing relay prerequisites report no error, and align the README/instructions with the health check and restart requirement.

Proposed changes: c5d2500...proposal/186

git merge-tree found no conflicts with origin/master. CI discovery passed; x86 and ARM builds are still running. No builds, tests, typechecks, or runtime checks were run for this review. Please verify the configure → disable Talk → restart and missing Talk → enable → restart transitions when adopting the proposal.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill

Copy link
Copy Markdown
Member Author

Adopted proposal/186 as-is. Verified on a StartOS box with it installed: HPB applied (success) → disable Talk and restart → failure, Install and enable the Talk app in Nextcloud, then restart Nextcloud. → re-enable Talk: still that failure until a restart → restart: success, with the signaling server still configured.

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed 01c2ca3 against the previously reviewed c5d2500. All three findings are addressed:

  • Selected relays check whether Talk is enabled before accepting matching stored settings, with the contract recorded at reconcileTalk; the Direct-only no-op remains intact.
  • Failed app-list reads now produce failed, not a disabled-app diagnosis.
  • The recovery message includes restarting Nextcloud in every translation, and the documentation matches.

The reported StartOS disable → restart → failure → re-enable → restart → success verification covers the lifecycle regression. No remaining correctness findings.

git merge-tree reports no conflicts with origin/master. Current-head CI is still running. No builds, tests, typechecks, or runtime checks were run for this review.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit 2c42559 into master Nov 18, 2026
3 checks passed
@MattDHill
MattDHill deleted the feat/talk-health branch November 18, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants