Skip to content

fix: follow-ups to #15 and #20 - #23

Merged
devswha merged 1 commit into
devswha:mainfrom
Yoonwoo-Ha:fix/submit-followups
Sep 24, 2026
Merged

devswha merged 1 commit into
devswha:mainfrom
Yoonwoo-Ha:fix/submit-followups

Conversation

@Yoonwoo-Ha

Copy link
Copy Markdown
Contributor

Follow-ups from the merge reviews of #15 and #20.

#15 (composer submit)

  • Deadline. A submit is stamped when it reaches the server. Once 45s have passed, nothing of it is typed, whether or not it waited behind a stalled message in the pane's queue: it answers submit_timeout ("nothing was typed", and the composer keeps the text). A send that starts in time ends within two more 10s RPCs, and the client now waits 90s. So a message the client gave up on never reaches the pane later.
  • › guard. The collapsed-queue fallback no longer takes a numbered menu row (› 1. …) under the queue for the main prompt.
  • Composer. Text typed after the sent part keeps its leading whitespace. An edit inside the sent part while it was on its way stays in the box, with a note that it was not sent, instead of silently waiting for a resend that would duplicate it.

#20 (Codex bindings)

  • Trade-off, now documented where it lives. A claim needs the thread's first message in the other pane's last 400 lines, reading as at least 8 letters or digits. Otherwise this pane stays unsure until that pane's chat binds the thread. It never shows another conversation.
  • Tests for the uniqueness rule (a pane whose screen also matches this pane's thread claims nothing) and for pruning (a closed pane's binding stops counting).
  • Doc comment. codexHistorySegments's comment is back above it.

Testing

  • bun run typecheck is clean; bun test: 296 pass.
  • Each new check fails without its change:
    • the 50ms-deadline contract test
    • the numbered-menu unit case
    • the uniqueness part of the binding contract test
    • the pruning part of the binding contract test
  • In a browser: text typed after the sent part stays exactly as typed, spaces included. An edit inside the sent part stays with the note, and the pane got the message as it was sent.

🤖 Generated with Claude Code

From the merge reviews.

devswha#15 (composer submit):
- A submit is stamped when it reaches the server. Nothing of it is typed
  once 45s have passed, whether it waited behind a stalled message in the
  pane's queue or not: it answers submit_timeout ("nothing was typed").
  A send that starts in time ends within two more 10s RPCs, and the
  client now waits 90s, so a message it gave up on never reaches the pane
  later. A contract test with a 50ms deadline fails without the check.
- The collapsed-queue fallback no longer takes a numbered menu row
  (`› 1. …`) under the queue for the main prompt.
- Text typed after the sent part keeps its leading whitespace. An edit
  inside the sent part while it was on its way stays in the box with a
  note that it was not sent, rather than silently waiting for a resend
  that would duplicate it (checked in a browser).

devswha#20 (Codex bindings):
- The claim trade-off is written down where it lives: the other pane's
  first message must still be in its last 400 lines and read as 8+
  letters or digits, otherwise this pane stays unsure. It never shows
  another conversation.
- A contract test covers the uniqueness rule (a pane whose screen also
  matches this pane's thread claims nothing) and pruning (a closed pane's
  binding stops counting). Each part fails without its code.
- codexHistorySegments' doc comment is back above it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@devswha

devswha commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Merged. Thanks. The deadline holds end to end: after 45s from arrival nothing is typed, a send that starts in time finishes by about 65s, and the client waits 90s. The contract test shows it: the second message is refused and only the first reaches the pane. It passed on every repeated run (submit 4/4, binding 3/3).

Two nits for whenever:

  • If the box is cleared entirely while a message is sending, edited is true, so an empty box shows "Your changes made while it was sending stayed here". Skip the note when current is empty.
  • The deadline test assumes the first message starts typing within 50ms. That's fine here, but it could flake on a slow runner. A per-test clock, or a longer deadline with a longer gap, would make it robust.

Yoonwoo-Ha added a commit to Yoonwoo-Ha/herdr-web-ui that referenced this pull request Sep 25, 2026
…mpts

Conflicts:
- server/prompt.ts: codexQuestionsCollapsed reads queuedQuestionCount now;
  main's "not a numbered menu row" check (devswha#23) moves into that one count.
- src/components/ChatView.tsx: main's memo wrapper, with this branch's
  prompt props.
devswha added a commit that referenced this pull request Nov 21, 2026
…orge, and says where the code is in one line

Owner #23. Portal's row is always at the foot of the desktop SSH tab: where
Portal is not installed, too old or has no access token, one line says so
with a link to the guide's Portal section, and nothing to press; a Portal
that can run keeps its controls behind Settings. The ssh config suggestions
leave out git forges (github.com, gitlab.com, bitbucket.org, codeberg.org,
*.github.com, *.gitlab.com, and Host entries whose HostName is one); a PC
that logs in as git stays. Add by address's help is one line.
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