Skip to content

feat(requests): let requesters remove their own failed requests - #3430

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:feat/remove-failed-requests
Nov 4, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:feat/remove-failed-requests

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #3427
Related issue: N/A
Validation tasks: none passed yet; reaches #1202 C1 and C3 (request lifecycle, library completion) and #1204 C2 (request status on the web)

A request that fails stays in the requester's list for good. On the web's Requests > Yours tab it sits under "Needs attention" with no action, because cancel only applies to requests nothing has been sent for. Some failures can't be fixed by a retry, such as a title TMDB removed or a series with no TVDB ID, and the only cleanup today is an admin deleting the row in the database. This change lets the requester remove their own failed request.

Approach

  • New v2 operation removeFailedRequest (DELETE /api/v2/requests/{id}), for the request's account or an acting admin. It answers 204 and deletes the request with its targets, events and follows. Nothing is sent to Radarr or Sonarr, since a failed request has nothing in flight.
  • The guard is on the DELETE itself: the row must still be failed and have no completed target. A request an admin retried, or one the library completed, answers 409 instead of racing the delete. A request that delivered one quality before failing (HD arrived, 4K failed) also answers 409; its failure stays for an admin to retry, the same rule library completion already uses. That "no completed target" condition is now one SQL fragment shared by the delete, the library-wait candidate list and library completion.
  • Requesters are refused while requests are turned off, as with cancel. Cancel and remove now share one ownership check.
  • getRequestStatus adds remove_failed_supported so clients can detect the operation.
  • Web: Requests > Yours shows Remove request on failed requests that delivered nothing, behind a confirmation.
  • Removing gives up two things a kept failure gets: library completion of recent failures, and handing its follows to the title's next request. docs/architecture/media-requests.md records this.

The Apple and Android apps get the same action in Silo-Server/silo-apple#985 and Silo-Server/silo-android#791. The manual update is Silo-Server/siloserver.org#334. jellycompat has no requests surface.

Validation

  • Go: build, gofmt, vet, lint-changed and lint-router-recovery pass; make test-go passes.
  • Database: the new delete-guard test passes against a migrated pgvector database and is listed in scripts/ci/db-contracts.txt. The two existing queries that now share the "no completed target" fragment were run once against the same database and behave as before.
  • Contracts: OpenAPI, fixtures, route inventory, migration ledger, offline routes, v1 route freeze and the other verify-* targets pass. The fixture tree changes by one line in about 100 files because fixture instance ids are numbered in sequence and a new case shifts them.
  • Web: lint, format check, build, budget check and make test-web pass.
  • Not run locally: verify-actionlint and verify-shellcheck (pinned tools not found by the make targets); this change touches no workflow or shell script.
  • Manual: on a local server, removed a failed request from the web UI at desktop and phone width; the API answered 409 for a partly delivered and a pending request, 404 for an unknown id, and 204 for a failed one.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3430/

Surface and build: web app (Requests > Yours), desktop and phone width. Before: base commit 56e6f87. After: this branch. Same seeded data on both.

DELETE /api/v2/requests/{id} for a failed request, same database:

before (56e6f871c): 405 Method Not Allowed
after (this branch): 204 No Content

GET /api/v2/requests/status, tail of the request_status_ok contract fixture:

   "watchlist_requests": false,
-  "discover_rows_supported": true
+  "discover_rows_supported": true,
+  "remove_failed_supported": true
 }

Risks

None identified. The operation is additive, and older clients keep working without it. Deleting a request removes its event history; that is the intent, and it already happens when a requester re-requests a failed title.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; Codex CLI (review)
  • Model(s): claude-opus-5-5; gpt-6.1-sol (review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: two independent reviews of the full branch diff (claude-opus-5-5 and gpt-6.1-sol, correctness, standards and spec), then a second round on later changes. Found: removal skipped the requests-enabled check, an endpoint test repeated covered checks, and a docs line listed the operation among ones that return a body; all fixed, and a test row for the disabled case was added. No open findings.

Note

Let requesters remove their own failed media requests

  • Adds DELETE /api/v2/requests/{id} (operation removeFailedRequest, returns 204). Owners can remove their own failed requests; admins can remove any. Non-owners, viewers without an account, and non-admins when requests are disabled are rejected.
  • Removal is guarded by a database condition: the request must have failed and no target may be in completed status. The shared deliveredNothing SQL predicate in repository.go is now used by the library-wait query, availability update, and the new Repository.DeleteFailed.
  • GET /requests/status advertises a new remove_failed_supported capability, and the OpenAPI contract and web client schema are regenerated.
  • The web Requests page shows a Remove button with a confirmation dialog for eligible requests via canRemoveOwnRequest in mediaRequests.ts, plus a useRemoveFailedMediaRequest mutation hook with toast feedback.
  • Risk: all contract fixture request instance identifiers were incremented to make room for the new fixture; consumers pinning those fixture IDs need updating. Requests with a completed target cannot be removed and return ErrInvalidState.

Macroscope summarized 28088fc.

Add removeFailedRequest (DELETE /api/v2/requests/{id}) for the request's
owner or an acting admin. The delete is guarded on outcome = 'failed' and
no completed target, so a retried, completed or partly delivered request
answers 409. getRequestStatus advertises it with remove_failed_supported.

The web Requests > Yours tab offers Remove request, with a confirmation,
on failed requests that delivered nothing.
@silo-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Nov 2, 2026
@silo-kody

silo-kody Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The PR adds an API operation to remove eligible failed media requests. The server checks authorization and delivery state. The web Requests page offers a confirmed removal action. The API contract, tests, fixtures, and architecture documentation are updated.

Changes: Failed Request Removal

Layer / File(s) Summary
API contract and endpoint
contracts/api/v2/openapi.json, contracts/api/v2/fixtures/*, internal/apiv2/request_lifecycle.go, internal/apiv2/request_lifecycle_test.go, internal/api/handlers/requests.go, internal/api/testdata/media_routes.txt, internal/contractledger/ledger_test.go
The API defines DELETE /api/v2/requests/{id} and the remove_failed_supported capability. The endpoint calls the lifecycle service and returns 204 on success. Fixtures include a successful deletion case and the enabled capability flag; other listed fixture changes update request-instance identifiers.
Authorization and guarded deletion
internal/requests/store.go, internal/requests/repository.go, internal/requests/service.go, internal/requests/*_test.go, scripts/ci/db-contracts.txt, docs/architecture/media-requests.md
The service authorizes owners and admins. The repository deletes only failed requests with no completed targets and distinguishes missing requests from invalid states. Tests cover these cases. Documentation describes removal effects and admin permissions.
Web removal action
web/src/api/v2/operations.ts, web/src/api/v2/requests.ts, web/src/api/v2/schema.ts, web/src/hooks/queries/useRequests.ts, web/src/lib/mediaRequests.ts, web/src/pages/Requests.tsx, web/src/pages/Requests.test.tsx
The web client calls the new endpoint. The Yours tab offers a confirmed removal action for eligible failed requests. The mutation provides feedback and invalidates request surfaces. Tests check eligibility and confirmation behavior.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor Owner
  participant RequestsPage
  participant RemovalMutation
  participant RequestAPI
  participant RequestService
  participant Repository
  Owner->>RequestsPage: Confirm removal
  RequestsPage->>RemovalMutation: Remove request ID
  RemovalMutation->>RequestAPI: DELETE /api/v2/requests/{id}
  RequestAPI->>RequestService: RemoveFailed(viewer, ID)
  RequestService->>Repository: DeleteFailed(ID)
  Repository-->>RequestService: Deletion result
  RequestService-->>RequestAPI: Return success or error
  RequestAPI-->>RemovalMutation: 204 or problem response
  RemovalMutation-->>RequestsPage: Update feedback and request surfaces
Loading

Suggested labels: go, javascript, api-v2, impact: usability, evidence-required

Suggested reviewers: quick104

Merge Risk: Moderate · up to 28088

Concurrent delivery may delete partly delivered requests, while users are not told that removal can permanently discard follows and later library completion.

Security architecture risk: Low · up to 28088

Removal is restricted to the owning account or an acting administrator, with server-side eligibility checks and atomic cleanup. No new cross-account access was identified. The permanent deletion behavior and remaining concurrency-validation uncertainty keep the assessment above minimal.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • observed — A successful call removes one eligible request and its dependent records. The owning account can consequently remove follows belonging to other accounts or profiles on that request; this is documented lifecycle behavior, not authority to delete arbitrary requests or library media. Acting administrators may remove eligible requests across accounts.

Trust Boundaries and Controls

  • observed — The new route is profile-scoped and derives account identity and acting-admin status from context rather than deletion input. The service rejects an empty account identity and non-admin access to another account’s request. Persistence independently enforces the failed/no-completed-target condition.

Resilience and Maintainability Implications

  • inferred — Normal lifecycle entry points provide substantial counterevidence to the suspected delayed-completion race: terminal targets are skipped, target changes recompute the parent transactionally, and reconcile/download-refresh task implementations share advisory target-writer exclusion when constructed with a database pool. This does not establish safety for unlocked direct callers or unverified deployment wiring.
Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Warning Issue #3427 requires failed-request removal with confirmation in the web Yours view and in the Apple and Android request lists where failed requests appear. This PR implements and tests the server ope… Implement and test the confirmed failed-request removal action in the Apple and Android request lists required by #3427, with the same eligibility and guarded server behavior. Alternatively, update the linked issue to remove the deferred pl…
Docstring Coverage Inconclusive Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: allowing requesters to remove their own failed requests.
Description check Passed The description directly explains the new failed-request removal operation, its guards, API behavior, web changes, validation, and risks.
Out of Scope Changes check Passed The server operation, authorization and database guard, API contracts, lifecycle tests, web client and UI, contract fixtures, and architecture documentation support the failed-request removal objectiv…
Full details: Out of Scope Changes check

Explanation

The server operation, authorization and database guard, API contracts, lifecycle tests, web client and UI, contract fixtures, and architecture documentation support the failed-request removal objective in #3427. The fixture identifier updates maintain contract consistency. No unrelated change is demonstrated.

Full details: Linked Issues check

Explanation

Issue #3427 requires failed-request removal with confirmation in the web Yours view and in the Apple and Android request lists where failed requests appear. This PR implements and tests the server operation and the web action, including ownership checks, guarded deletion, and confirmation. The PR description places the Apple and Android actions in separate changes, so those active issue requirements are not implemented here.

Resolution

Implement and test the confirmed failed-request removal action in the Apple and Android request lists required by #3427, with the same eligibility and guarded server behavior. Alternatively, update the linked issue to remove the deferred platform requirements.

Full details: Docstring Coverage

Explanation

Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 8 functions across 15 files. (2 skipped: 1 unsupported, 1 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@macroscopeapp

macroscopeapp Bot commented Nov 2, 2026

Copy link
Copy Markdown

The web change in web/src/pages/Requests.tsx adds a Remove request action and confirmation on Requests > Yours, but the Evidence section has no published link or UI captures. Please add before-and-after captures of the same request on desktop and phone-width web, including the confirmation state (or a short recording of the removal flow). The API excerpt shows DELETE changing from 405 to 204, but does not show the new remove_failed_supported field in getRequestStatus; add before-and-after excerpts for that response as well.

Suggested fix: publish the captures and add the resulting Evidence: https://evidence.siloserver.org/r/silo-server/pr-3430/ line under Evidence.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added enhancement New feature or request priority: P2 Limited scope, workaround exists, or polish labels Nov 2, 2026
@Rhainland

Copy link
Copy Markdown
Contributor Author

@macroscopeapp The Evidence section now links the published captures (desktop and phone width, before and after on the same data, plus the confirmation and the removed state): https://evidence.siloserver.org/r/silo-server/pr-3430/. I also added a before-and-after excerpt of getRequestStatus showing the new remove_failed_supported field.

}
isCancelling={cancellingID === request.id}
onRemove={
canRemoveOwnRequest(request) ? () => setRemoveTarget(request) : undefined

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules high

Restricted profiles are offered a failed-request deletion action

Requests-blocked profiles can see and invoke a deletion action instead of receiving a read-only view. Pass the authenticated profile's request capability into this view and suppress onRemove for restricted profiles.

Kody rule violation: Enforce restricted-profile request ownership before pagination

Prompt for LLM
File web/src/pages/Requests.tsx, line 366:

Restricted profiles are offered a failed-request deletion action

Do not offer the remove action to requests-blocked profiles. This callback is assigned solely from the request state, so a restricted profile can see and invoke a deletion action instead of the required read-only request view. Pass the authenticated profile's request capability into this view and suppress the action for restricted profiles.

Kody rule violation: [Enforce restricted\-profile request ownership before pagination](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/65a30eff-bf34-44d2-afcf-25e9c2f9ea30?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Comment on lines +365 to +367
onRemove={
canRemoveOwnRequest(request) ? () => setRemoveTarget(request) : undefined
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

Remove action ignores server capability

A newer web client can offer an action that fails when connected to an older server. Gate onRemove on useRequestFeatureStatus().data?.remove_failed_supported === true.

Prompt for LLM
File web/src/pages/Requests.tsx, lines 365-367:

Remove action ignores server capability

The remove button appears even when the server does not advertise `remove_failed_supported`, so a newer web client connected to an older server offers an action that fails when clicked. Gate the action on `useRequestFeatureStatus().data?.remove_failed_supported === true`.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changing this. The web app is built into the server binary (web/embed.go), so it always runs against the server it shipped with; a newer web client never meets an older server outside a local Vite dev proxy. The web follows that elsewhere: it does not check follow_supported, season_requests_supported, download_progress_supported or discover_rows_supported either, and reads watchlist_titles_supported only because that flag follows the runtime requests_enabled setting. remove_failed_supported is a constant for the native apps, which can connect to older servers; the Apple and Android follow-ups (Silo-Server/silo-apple#985, Silo-Server/silo-android#791) gate on it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Given that the web app ships with the server, the older-server compatibility concern applies to the native apps, not the bundled web UI. The existing web conventions also support leaving this action ungated. I withdraw the suggestion.

Would you like me to retain this compatibility distinction for future reviews?

@coderabbitai coderabbitai Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: usability Core flow broken or severely blocked javascript Pull requests that update javascript code labels Nov 2, 2026

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow-up Comments

Outside diff Reject deletion after an admin retry.

757-758: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Reject deletion after an admin retry.

If an admin retries a request and it fails again without a completed target, this guard permits deletion. The endpoint returns 204 and deletes the request history, although the API promises 409 after a retry. Check retry history in the guarded delete. (raw.githubusercontent.com)

Open the source location

Comment thread internal/requests/repository.go Resolved
Comment thread web/src/pages/Requests.tsx Resolved
…iled

A request that was retried and failed again is failed again and can be
removed; the 409 covers a request that is no longer failed.
@Rhainland

Rhainland commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

@coderabbitai On the outside-diff finding ("Reject deletion after an admin retry"): a request that an admin retried and that then failed again is failed again, and removing it is intended. The 409 exists so removal never races a live submission, which is what the outcome = 'failed' guard gives. The operation summary overstated it; fixed in 28088fc by wording it as "no longer failed (an admin retried it, or the library completed it)".

@silo-kody

silo-kody Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Gate RemoveFailedSupported for disabled requests. · request_lifecycle.go:236

internal/apiv2/request_lifecycle.go:236
Minor · Functional Correctness · Quick win

Gate RemoveFailedSupported for disabled requests.

GetFeatureStatus reports the global RequestsEnabled setting, while RemoveFailed rejects non-admin viewers with ErrRequestsDisabled when requests are disabled. The status response can therefore advertise an action that fails for a non-admin requester. Preserve admin access with this gate:

Suggested fix
- RemoveFailedSupported: true,
+ RemoveFailedSupported: status.RequestsEnabled || viewer.IsAdmin,

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 02f8b6d1-e6b8-4a11-b96d-33d91856ad9b
Commits

Reviewing files that changed from the base of the PR and between 92cf270 and 28088fc.

Files selected for processing: 4
  • contracts/api/v2/openapi.json
  • internal/apiv2/request_lifecycle.go
  • internal/requests/service.go
  • web/src/api/v2/schema.ts
Files skipped from review as they are similar to previous changes: 1
  • internal/requests/service.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@Rhainland

Copy link
Copy Markdown
Contributor Author

@coderabbitai On "Gate RemoveFailedSupported for disabled requests": keeping it constant. The *_supported operation flags on getRequestStatus say the server has the operation, not that it is usable right now: follow_supported and season_requests_supported also stay true while requests are off, and followRequestMedia is refused for requesters then too. Whether requests are usable is reported once, by requests_enabled and the capability state (disabled), which clients already check before showing any request UI. watchlist_titles_supported is the documented exception because its operations answer capability_disabled as a whole. Mixing the setting into this flag would make it mean two things.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@Rhainland You're right. I withdraw “Gate RemoveFailedSupported for disabled requests.”

remove_failed_supported reports operation support, not current availability. Keeping it constant matches follow_supported and season_requests_supported. Clients use requests_enabled and capability state to check availability. The documented watchlist_titles_supported exception does not change that distinction.

No change is needed for this finding.


Learnings added
Learnt from: Rhainland
URL: https://github.com/Silo-Server/silo-server/pull/3430

Timestamp: 2026-11-02T21:52:55.112Z
Learning: Within repository "Silo-Server/silo-server", only for files matching one of ["internal/apiv2/request_lifecycle.go"]: When reviewing getRequestStatus operation-support flags in internal/apiv2/request_lifecycle.go, distinguish server operation support from current request availability. Do not require remove_failed_supported, follow_supported, or season_requests_supported to become false when requests are disabled. Check availability through requests_enabled and capability state instead. Preserve the documented watchlist_titles_supported exception, whose operations return capability_disabled as a whole.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

@macroscopeapp

macroscopeapp Bot commented Nov 2, 2026

Copy link
Copy Markdown

The Validation tasks: line is inaccurate. Later updates to #1201, #1202, and #1204 record the listed cases as passed, so “none passed yet” is stale. I traced the Requests tasks across server, web, Apple, and Android: the library-completion predicate is equivalent to the prior SQL, the web action only appears on failed rows absent from #1204 C2’s recorded states, and the validated native clients ignore the added capability field. No existing case result changes or is unblocked; the new removal flow is not covered by those cases.

Suggested fix:
Validation tasks: none

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@Rhainland You're right. I withdraw “Reject deletion after an admin retry.”

A previous admin retry does not disqualify a request from removal. If the request fails again and has no completed target, removal is intended. The outcome = 'failed' guard prevents deletion while a retried request is active.

The revised wording describes the intended conflict condition. No additional retry-history guard is needed.

You are interacting with an AI system.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@Rhainland You're right. I withdraw “Reject deletion after an admin retry.”

If a retried request fails again and has no completed target, removal is intended. A previous admin retry does not disqualify it.

The outcome = 'failed' guard prevents deletion while a retried request is active. The revised wording describes the conflict condition correctly. No retry-history guard is needed.

You are interacting with an AI system.

Quick104 pushed a commit to Silo-Server/silo-android that referenced this pull request Nov 6, 2026
* feat(requests): let users remove their own failed requests

A failed request stayed in the requests list with no way to clear it.
Phone My Requests and the TV Requests page now offer Remove on a failed
request that delivered nothing, after a confirmation that names the
title. A request that delivered one quality before failing keeps no
Remove action. The action appears only when the server reports
remove_failed_supported, so older servers see no change.

Removing calls DELETE /api/v2/requests/{id}, drops the row, makes the
title requestable again on every surface, and confirms with "Request
removed". A 409 conflict (retried or completed since the list loaded)
re-reads the list and says why nothing was removed. On TV, focus moves
to the neighbouring card when the focused one leaves the page.

Server dependency: Silo-Server/silo-server#3430.
Closes #791

* fix(requests): drop a request removed elsewhere even when the re-read fails

A 404 on removal means another device already removed the request. Treat
it like a 204 so the row leaves the list without waiting on the re-read.
@coderabbitai coderabbitai Bot mentioned this pull request Nov 9, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes go Pull requests that update go code impact: usability Core flow broken or severely blocked javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Let users remove their own failed requests, on the web and in the apps

2 participants