Expose experimental Remote speech and record reader integration

Update connection controls to disclose experimental speech and unsupported keyboard, clipboard and Braille services. Record incoming speech ownership, fragment privacy and browse current-line export, with focused checks and explicit live acceptance steps.

The matching reader changes are committed as 49be830 on testing. Remote race tests and make check passed; audible speech, physical input/Braille and live interoperability remain unverified.
This commit is contained in:
ak47 committed 2026-11-05 15:41:38 -05:00
1 parent 3a403cb254
commit 8e30e009f5
11 files changed
+201 -73

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ func (command *connectionCommand) commands() []sdk.Command {
id, title string
handler sdk.Handler
}{
{"remote", "Remote relay connection (desktop services unavailable)", command.open},
{"remote", "Remote relay connection (experimental speech)", command.open},
{"remote-select", "Choose Remote relay and role", command.select_relay},
{"remote-approved", "Continue after reader-owned Remote approval", command.approved},
{"remote-connection", "Remote connection controls", command.submit},
@@ -74,7 +74,7 @@ func (command *connectionCommand) selection_form(notice string) sdk.Interaction
if command.selected.Role == "controlled" {
roles[0], roles[1] = roles[1], roles[0]
}
result := sdk.Interaction{Form: &sdk.Form{Title: "Remote relay and role. Relay testing only; desktop services are unavailable.", Elements: []sdk.Element{
result := sdk.Interaction{Form: &sdk.Form{Title: "Remote relay and role. Experimental speech; keyboard, clipboard and Braille services are unavailable.", Elements: []sdk.Element{
{ID: "cancel", Label: "Cancel", Kind: sdk.Button},
{ID: "host", Label: "Relay host", Kind: sdk.Entry, Text: command.selected.Host, MaxLength: 253},
{ID: "port", Label: "Relay port", Kind: sdk.Entry, Text: strconv.Itoa(command.selected.Port), MaxLength: 5},
+4 -4
View File
@@ -106,7 +106,7 @@ func (w *connectionWorkflow) form_locked() sdk.Interaction {
{ID: "endpoint", Label: "Relay: " + address},
{ID: "role", Label: "Approved role: " + w.action.Role},
{ID: "privacy", Label: "The relay can read the channel key and session contents. A channel key does not verify the other person's identity."},
{ID: "scope", Label: "Relay testing only. Speech, keyboard, clipboard transfer and Braille services are unavailable."},
{ID: "scope", Label: "Experimental speech; live verification is pending. Keyboard, clipboard and Braille services are unavailable."},
}}
switch w.mode {
case "credentials":
@@ -178,9 +178,9 @@ func connection_status_text(status connectionStatus) string {
case "connecting":
return "Connecting and authenticating the relay."
case "waiting":
return "Connected to the relay; waiting for one opposite-role peer. Desktop services are unavailable."
return "Connected to the relay; waiting for one opposite-role peer. Experimental speech; keyboard, clipboard and Braille services are unavailable."
case "ready":
return "One opposite-role peer has joined. Desktop services are unavailable."
return "One opposite-role peer has joined. Experimental speech; keyboard, clipboard and Braille services are unavailable."
case "stopping":
return "Disconnecting and releasing the reader lease."
case "failed":
@@ -350,7 +350,7 @@ func (w *connectionWorkflow) submit(ctx context.Context, value sdk.Submission) (
case "status":
if value.Activated == "desktop" {
if lease, ok := w.owner.background_lease(w.action.Epoch); ok {
result := security_message("Remote connection controls closed. Press Cthulhu+Control+Shift+R to review status or disconnect. Desktop services remain unavailable.")
result := security_message("Remote connection controls closed. Press Cthulhu+Control+Shift+R to review status or disconnect. Speech support is experimental.")
result.RemoteBackground = &lease
return result, nil
}
+1 -1
View File
@@ -155,7 +155,7 @@ func TestConnectionWorkflowConnectUsesLoadedKeyWithoutEcho(t *testing.T) {
awaitStatus(t, c, func(s connectionStatus) bool { return s.state == "waiting" })
result = workflowSubmit(t, w, "refresh", "")
encoded, _ := json.Marshal(result)
if !strings.Contains(string(encoded), "waiting for one opposite-role peer") || !strings.Contains(string(encoded), "Desktop services are unavailable") {
if !strings.Contains(string(encoded), "waiting for one opposite-role peer") || !strings.Contains(string(encoded), "keyboard, clipboard and Braille services are unavailable") {
t.Fatal("status advertised desktop control or omitted waiting state")
}
if w.key != "" {