Repository navigation
feat(learn): start a screen time focus session with each focus period - #22
Conversation
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Note 🤖 Claude Opus 5.5 responding on behalf of screen-gd Pushed two fixes to
Checks on |
|
@coderabbitai review |
|
/devin review |
Action not completed
|
|
Note 🤖 Claude Opus 5.5 responding on behalf of screen-gd Pushed
Checks on |
|
@coderabbitai review |
|
/devin review |
Action not completed
|
|
Note 🤖 Claude Opus 5.5 responding on behalf of screen-gd Pushed Checks on |
|
/devin review |
|
@coderabbitai review |
Action not completed
|
|
/devin review |
|
@coderabbitai review |
Action not completed
|
Summary
Starting a focus period in Syllo now starts a Screen Time focus session, so only the study work stays usable. Breaks, pause, reset, the end of the period and turning the link off end it. The link is off by default and lives in Settings.
sequenceDiagram participant Timer as Pomodoro (browser) participant Syllo as Syllo server participant ST as Screen Time (same computer) Timer->>Syllo: POST /api/screen-time/session {goal, durationSeconds, resourceUrls} Syllo->>Syllo: read connection.json, validate (loopback only, live pid) Syllo->>ST: POST /api/v1/focus/session + X-Tally-Token ST-->>Syllo: 201 session / 409 busy Syllo-->>Timer: status union (no token)allowSitesis Syllo's own host plus the hosts of the open lesson's resources.mode,appsandsitesare left unset so the lists saved in Screen Time apply.docs/syllo-setup.mdsay so. There's no pairing.Evidence
bun run typecheck,bun run lint,bun run build: pass.bun run test: 159 passed, including three new Screen Time test files.GET /api/screen-time/sessionreturned{"kind":"not-installed"}(this machine has no Screen Time), a bad POST returned 400, and a cross-site request returned 403.feat/focus-sessions) isn't merged, so there was no end-to-end run against the real app.Reviewed with sol-loop: 3 rounds with gpt-6.1-sol. Sol verdict: approved.
Merge Danger
Door: two-way
The feature is off until it's switched on in Settings, and turning it off removes all of its behavior.
Blast Radius: small
The Pomodoro provider is mounted app-wide, so a crash there would affect every page. With the link off it sends nothing.
Created with Claude Opus 5.5 and SWE-2 (Devin, Fusion) in T3 Code. Reviewed by GPT-6.1 Sol.