Skip to content

fix(studio): add iOS home screen icon - #17776

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
bezabyte:codex/issue-17773-apple-touch-icon
Nov 15, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
bezabyte:codex/issue-17773-apple-touch-icon

Conversation

@bezabyte

Copy link
Copy Markdown
Contributor

Fixes #17773

What changed

  • Add a 180x180 apple-touch-icon.png derived from the existing Studio PWA artwork.
  • Link the Apple touch icon from the Studio HTML shell so iOS Add to Home Screen uses the Unsloth logo.
  • Extend the PWA test to verify the link and exact asset dimensions.

Validation

  • pytest -q tests/studio/test_pwa_manifest.py (2 passed)
  • git diff --check

@bezabyte
bezabyte force-pushed the codex/issue-17773-apple-touch-icon branch from 7de2d12 to 83bcf5f Compare November 14, 2026 20:50
danielhanchen added a commit that referenced this pull request Nov 14, 2026
… of racing the drainer (#17782)

## Problem


`studio/backend/tests/test_orchestrator_switch_waits.py::test_worker_crash_mid_frame_cannot_block_the_shutdown_deadline`
failed three times today on PRs that do not touch the orchestrator
(#17645, #17743 and #17776), all with the same signature:

```
tests/test_orchestrator_switch_waits.py:385: assert runner.exitcode == 0
E   AssertionError: assert 1 == 0
  File ".../test_orchestrator_switch_waits.py", line 366, in crash_after_drain
    assert proc.exitcode == 1
```

The worker in that test does `replies.put(<1 MiB frame>)` and then
`assert replies._reader.poll(30)` on its own end of the reply pipe
before crashing. But the code under test, `_shutdown_subprocess` ->
`_drain_unread_replies`, starts a drainer thread that reads that same
pipe. When the drainer gets the whole frame first, the worker's poll
finds nothing and waits its full 30 s, while the parent's
`proc.join(30)` expires first and sees `exitcode is None`.
`test_forced_shutdown_does_not_read_an_interrupted_queue_frame` polls
the same pipe from the parent and has the same race.

The orchestrator is fine. The tests depended on thread scheduling.

## Fix

A helper, `_write_partial_frame`, writes a length header claiming the
whole 1 MiB frame plus the first 32 KiB of it straight to the pipe, then
the worker crashes (or sleeps, for the interrupted-writer test). This is
less than one pipe buffer, so the write never blocks. Any reader is left
inside a partial frame every time, which is the state both tests mean to
set up. The interrupted-writer test now waits on a `wrote` event instead
of polling the shared pipe. On Windows, where `PipeConnection` has no
raw write, the helper falls back to the old `put`.

## Tests

- Reproduced the CI failure on main by adding `time.sleep(1)` in the
worker before its poll: `assert 1 == 0`, the same error as CI. With the
same delays added around the new partial write, both tests still pass.
- `test_orchestrator_switch_waits.py`: 14 passed, three times under `-n
8`.
- Both tests ran 30 times on 10 concurrent loops, base and head. Both
passed every time locally, so the flake is not reproducible here without
the forced delay above.
@danielhanchen danielhanchen self-assigned this Nov 15, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T07:59:57.455459Z 1c6f16b Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 1c6f16bb41

ℹ️ 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".

@danielhanchen
danielhanchen merged commit 27cba50 into unslothai:main Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] iOS "Add to Home Screen" shows a text-letter icon instead of the logo (no apple-touch-icon)

3 participants