GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix(desktop): retry failed storage writes and refuse writes after close by Hona · Pull Request #61804 · anomalyco/opencode Conversation
Member
SummaryThe desktop main process buffers renderer storage writes ( Bugs
Statetype WriteBehindState<T> = | { status: "idle" } | { status: "scheduled"; pending: ReadonlyMap<string, T>; attempt: number; failures: number } | { status: "flushing"; inFlight: ReadonlyMap<string, T>; queued: ReadonlyMap<string, T>; attempt: number; failures: number; closing: boolean } | { status: "closed" } stateDiagram-v2
[*] --> idle
idle --> scheduled: set / start-timer(delay)
idle --> closed: close.requested
scheduled --> idle: drop (all rows) / cancel-timer
scheduled --> flushing: timer.fired(attempt) / flush.requested / close.requested
flushing --> idle: write.succeeded (nothing queued)
flushing --> scheduled: write.succeeded (rows queued) / start-timer(delay)
flushing --> scheduled: write.failed / start-timer(backoff), report-error
flushing --> closed: write settled while closing
closed --> closed: set / reject-closed
Deleted
Deviations from the design and product calls
Visual<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none" stroke="currentColor"> <style> .row{animation:send 3s ease-in-out infinite} .x{animation:fail 3s linear infinite} .ok{animation:ok 3s linear infinite} @keyframes send{0%{transform:translateX(0)}25%{transform:translateX(60px)}35%{transform:translateX(0)}70%,100%{transform:translateX(116px);opacity:0}} @keyframes fail{0%,20%{opacity:0}25%,35%{opacity:.8}40%,100%{opacity:0}} @keyframes ok{0%,65%{opacity:0}72%,95%{opacity:.8}100%{opacity:0}} @media (prefers-reduced-motion:reduce){.row,.x{animation:none;opacity:0}.ok{animation:none;opacity:.8}} </style> <rect x="20.5" y="22.5" width="40" height="28" rx="3" opacity=".5"/> <path d="M28 32h24M28 40h16" opacity=".4" stroke-width="2"/> <ellipse cx="190" cy="24" rx="20" ry="6" opacity=".6"/> <path d="M170 24v24c0 3.3 9 6 20 6s20-2.7 20-6V24" opacity=".6"/> <rect class="row" x="64" y="32" width="12" height="8" rx="1" fill="currentColor" stroke="none" opacity=".6"/> <path class="x" d="M128 30l8 8M136 30l-8 8" stroke-width="2"/> <path class="ok" d="M184 38l4 4 8-8" stroke-width="2"/> </svg>
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level. An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fix looks correct to me. On the base, a write-behind script showed that a failed batch is never retried until the next Public API: unchanged. The machine follows the state-machine pattern in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
1 task
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers
Copilot code review
Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Uh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | ||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |