Skip to content

hub/app: late answers stay on the page that asked; tokens per message - #21

Merged
ohdearquant merged 2 commits into
mainfrom
fix/app-page-instance
Sep 29, 2026
Merged

ohdearquant merged 2 commits into
mainfrom
fix/app-page-instance

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Late answers and retry tokens on the resident page.

  • Each navigation is a new page, a return to the same resident included. A control's or a send's answer that arrives after the page changed shows its result as a toast and leaves the page now shown alone: no panel is closed, no reload, the text being typed is kept. Before, a late answer for resident A closed B's open panels, and going A to B and back to A let it reload A and clear the new text.
  • An unsent message keeps its token by resident, subject and words, so a newer message to the same resident no longer takes the older one's token; the same words again replay the first send instead of mailing twice.
  • A control with no answer keeps its token, keyed by resident, action and arguments, so asking the same again is replayed by the server's once cache; an answered control frees it.

Tokens live in the page: a full reload starts with none, so a retry after a reload mints a new token.

The page script has no tests in this repository. It was checked with a script-level harness driving the page with delayed answers: every case above holds on this branch, and the previous page script fails five of them.

Stacked on #15; the base moves to main once #15 merges.

- page: each navigation is a new page, a return to the same resident
  included. A control's or a send's answer that arrives after the page
  changed shows its result and touches nothing on the page now shown.
- page: an unsent message keeps its token by resident and words, so a
  newer message to the same resident no longer takes it; the same words
  again replay the first send.
- controls: a control with no answer keeps its token, so asking the same
  again replays it; an answered control frees it.
@ohdearquant
ohdearquant changed the base branch from hub/app to main September 28, 2026 03:38
@ohdearquant
ohdearquant changed the base branch from main to hub/app September 28, 2026 03:39
@ohdearquant
ohdearquant changed the base branch from hub/app to main September 28, 2026 03:59
@ohdearquant
ohdearquant merged commit f323b13 into main Sep 29, 2026
16 checks passed
@ohdearquant
ohdearquant deleted the fix/app-page-instance branch September 29, 2026 00:47
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.

1 participant