Skip to content

fix(feed): preserve comment drafts and recover failed reads - #244

Merged
zo-sol merged 5 commits into
IQCoreTeam:mainfrom
NubsCarson:codex/session-feed-regressions-20260916
Sep 17, 2026
Merged

zo-sol merged 5 commits into
IQCoreTeam:mainfrom
NubsCarson:codex/session-feed-regressions-20260916

Conversation

@NubsCarson

@NubsCarson NubsCarson commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Preserve mobile blog comment drafts until the post succeeds

Failed blog comments currently clear the draft immediately and can leave the composer stuck on Posting. An unrelated comments refresh also closes an inline reply while the user is typing. Handle the existing per-post blogCommentResult event instead: preserve inputs on failure, unlock retry, and clear only the successfully submitted composer. Also expose the host-supported fresh flag in the webview request type.

Four component regressions pass, including Korean input, late refreshes, repeated failures and an unrelated unsent draft. Two of these regressions fail on unchanged main. Production webview build passes. Full typecheck retains ten pre-existing unused-symbol failures; this patch adds none and removes the existing fresh request-type error. Local screenshots use simulated responses; no on-chain posts were submitted.

Addresses part of #208; does not close the issue. Session concurrency #113 and the separate pending-PR merge conflicts are not fixed by this patch.

Local browser evidence

Simulated failure, with Korean draft retained:

Draft retained

390px mobile, reply retained after a late comments refresh:

Mobile reply

Read recovery follow-up

This PR also discards superseded feed/comment responses, distinguishes failed reads from genuinely empty results, and adds Retry controls. A missing author-table body is never replaced with an unverified feed preview. A confirmed comment stays successful if only the comments refresh fails.

At 15d252e3: 480 core tests, 7 webview tests, and production build passed. Ten baseline unused-symbol typecheck errors remain. The initial full-core run encountered an existing session-settings timing/cleanup race; both runs are preserved. No public posts or wallet transactions were submitted.

Read recovery tests and limitations

Feed failure with Retry
Retry restored the feed
Missing author body

@NubsCarson NubsCarson changed the title fix(webview): preserve blog comment drafts until acknowledged fix(feed): preserve comment drafts and recover failed reads Sep 16, 2026
@zo-sol

zo-sol commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Reviewed and cleared to merge on my side — the on-chain posting/signing path is untouched, no double-post risk, and the disclosed read-recovery changes look sound.

However, after the sibling PRs landed on main (#240 Windows npm engines, plus #241 and #242), this branch now conflicts and GitHub marks it DIRTY:

Could you rebase onto the latest main and push? Once it's mergeable with green CI again I'll merge it. This is purely a mechanical conflict from the sibling PRs merging first — no review blockers.

@NubsCarson
NubsCarson force-pushed the codex/session-feed-regressions-20260916 branch from 157be72 to 5eb8d57 Compare September 17, 2026 02:23
@zo-sol
zo-sol merged commit 3b33d5e into IQCoreTeam:main Sep 17, 2026
2 checks passed
@NubsCarson
NubsCarson deleted the codex/session-feed-regressions-20260916 branch December 2, 2026 03:30
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