---
title: "Oleg Che (@olegche) | Hashnode"
description: "Oleg Che (@olegche) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@olegche"
---

@olegche

# Oleg Che

@olegche · Joined October 2026

## Comments

[Neither, strictly speaking. The main reason is sessions where the hook hasn’t been picked up yet. Claude Code reads hooks at session start, so an already-running session won’t have them until it’s restarted. Reading the notification database catches those sessions without a restart: Windows writes every toast from the Claude desktop app into wpndatabase.db, and a new row means “Claude is waiting for you”. The second point is that the desktop app asks for permissions and asks questions without firing a Notification event. So I also hook PermissionRequest and PreToolUse for AskUserQuestion|ExitPlanMode. So hooks are the primary path and the database is a fallback for older sessions. If the hook is set up from the start, you can do without it.](https://hashnode.com/posts/claude-mascot-electron-hooks-windows/6af332f20defdab8aa176a27/comment/6af360684b115f74badd861e#reply-6af3d03eb826d524ee854a96)

Reply · Article · Nov 11 · 1 · [A mascot that tells you when Claude Code is waiting: Electron, hooks and the Windows notification database](https://hashnode.com/posts/claude-mascot-electron-hooks-windows/6af332f20defdab8aa176a27)

[Thanks, good points. API protection. There’s no per-launch token right now. But your preflight point is already covered by another check: POST requests to /api/\* are accepted only with Content-Type: application/json. A foreign site can’t send such a request without a CORS preflight, and the server never answers a preflight with permission. The rest works as you described: the Host check (against DNS rebinding) and rejection of a foreign Origin and of Sec-Fetch-Site. For older browsers that don’t send Sec-Fetch-Site, Origin and the mandatory JSON type remain. A header token would add one more layer, and I’ll consider it. yt-dlp updates. It’s not a binary download: the app runs pip install -U yt-dlp in its own Python. pip fetches the package from PyPI over HTTPS. I don’t verify a hash or signature on this path. For Python and pip, the hashes are pinned in the setup script on first install, so you’re right that yt-dlp doesn’t get the same strict path. A static hash can’t work because releases come out every few days. Checking the published SHA2-256SUMS is possible. It’s a fair point and I’ll note it down. Rollback. There’s currently no rollback for yt-dlp: if a new version breaks extraction for a site, you have to install the previous one manually (python\\python.exe -m pip install yt-dlp==). Rollback exists only for updating the program itself: the archive is checked against the SHA-256 from GitHub, and if the new version fails to start, the old one is restored.](https://hashnode.com/posts/local-first-windows-app-yt-dlp-flask/6ae35d964843059765a37672/comment/6ae3619171d66c3f6dab34b7#reply-6ae4211e4ad0f273f3e69638)

Reply · Article · Oct 30 · [Building a local-first Windows app on yt-dlp: embedded Python, a localhost-only Flask server, and DNS-rebinding protection](https://hashnode.com/posts/local-first-windows-app-yt-dlp-flask/6ae35d964843059765a37672)
