Repository navigation
fix(browser): await confirmed session closes - #130
Conversation
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Tiny Sweeper reviewTiny Sweeper reviewed this change across 5 lane(s) and found 0 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below. State: Incomplete Review snapshot
Completeness: Incomplete FeaturesNone identified with supported citations. TestsNo supported feature-to-test mapping was produced. Test execution is not inferred.
FindingsNo active actionable findings. Could not review: crates/tinycomputer-browser/src/fake/mod.rs, crates/tinycomputer-browser/src/sessions/mod.rs, crates/tinycomputer-browser/src/sessions/sessions_tests/lifecycle_tests.rs, tinysweeper/description, tinysweeper/tests Before merge
How this fits togetherflowchart LR
n0["Fake<br/>changed"]:::changed
n1["Browser<br/>changed"]:::changed
n2["Session<br/>changed"]:::changed
n3["open_session_with_context"]:::impacted
n4["...refused_before_content_reaches_the_engine"]:::impacted
n5["Value"]:::impacted
n6["with_scratch"]:::impacted
n7["...ion_and_value_without_debugging_the_value"]:::impacted
n8["...metadata_without_sending_text_to_the_page"]:::impacted
n0 -->|uses| n5
n1 -->|uses| n2
n3 -->|uses| n2
n4 -->|calls| n6
n4 -->|tests| n6
n7 -->|calls| n3
n7 -->|tests| n3
n7 -->|calls| n6
n7 -->|tests| n6
n8 -->|uses| n1
n8 -->|calls| n6
n8 -->|tests| n6
classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Codex Review SummaryThis 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.
tinysweeper found nothing blocking, but could not review everything, so this is not an approval: crates/tinycomputer-browser/src/fake/mod.rs, crates/tinycomputer-browser/src/sessions/mod.rs, crates/tinycomputer-browser/src/sessions/sessions_tests/lifecycle_tests.rs, tinysweeper/description, tinysweeper/tests.
$0.0000 · 0 in / 0 out · 253 embedded · ladder/vectors-oai3
There was a problem hiding this comment.
💡 Codex Review
When a BrowserSurface-owned session encounters any close error, BrowserSurface::close has already removed the session ID from its slot and ignores the spawned close result (surface/mod.rs:285-295). Propagating the error here therefore leaves the session in this map while the normal surface lifecycle has no way to retry it, so it keeps counting toward MAX_SESSIONS; repeated transient close failures—or a browser that is already dead and can never confirm another close—eventually make all later browser tasks fail with LimitExceeded until the module restarts. The background cleanup path needs to retain/retry the ID or remove sessions known to be terminally closed.
ℹ️ 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".
Concurrent
close_sessioncalls now wait for the in-flight browser close instead of reporting success while it is still running. A backend close failure stays visible and can be retried, so callers do not release a profile based on an unconfirmed close.Validation:
cargo fmt --all -- --check,cargo clippy --locked -p tinycomputer-browser --all-targets -- -D warnings, andcargo test --locked -p tinycomputer-browser.