Repository navigation
Release Alysis Code 0.18.2 - #61
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 964b6c476d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if target is None or page_origin is None or page.scripted(target): | ||
| return False |
There was a problem hiding this comment.
Keep script-bound website controls behind action review
On pages that register handlers with addEventListener or delegated framework events, a normal link or GET form can perform a POST, send a message, or delete data without having any inline handler or nonstandard attributes. _Document.scripted() cannot detect those handlers from this snapshot, so this check allows stays_on_page() to return true and BotActionReviewer.check() to bypass the reviewer entirely in automatic mode. Unlike navigating directly to an address, clicking the control executes those handlers. Retain review unless native-only behavior can actually be established; absence of script-related HTML attributes is insufficient.
Useful? React with 👍 / 👎.
| "dispatch_state": "unknown" | ||
| if exc.reason in {"provider_unavailable", "offline"} | ||
| else "not_dispatched", | ||
| "recoverable": True, |
There was a problem hiding this comment.
Preserve uncertainty for unrecognized hub call failures
If /call performs an action but returns an HTTP 500, malformed JSON, an oversized response, or a response missing text, HubAppsClient raises HubAppsError("unavailable"). This branch incorrectly reports not_dispatched and marks the failure recoverable, even though the action may already have reached the app. That can encourage repeating an email, creation, or other non-idempotent change. Use an explicit allowlist of confirmed pre-dispatch refusals and report unknown for other failures, as OwlHubApps.call() already does.
Useful? React with 👍 / 👎.
| if offset + len(data) >= info.st_size: | ||
| path.unlink(missing_ok=True) |
There was a problem hiding this comment.
Retain the final reply part until receipt is acknowledged
If the final part's command runs but its response is lost in transit, this unlink has already deleted the kept reply before the host receives it. _read_kept() retries the same part up to three times, but every retry now encounters a missing file, so one transient response loss makes the entire reply unrecoverable; for a changing operation, it also retires the computer as uncertain. Keep the file until an explicit acknowledgment or its existing expiry/pruning cleanup so final-part reads remain retryable.
Useful? React with 👍 / 👎.
Alysis Code 0.18.2. See CHANGELOG.md for what changed.