← Commit history

Publish 0.1.43

Colby Knox ·98bf88ce33 · ·parent 8f19c53
4 files changed +32−3
README.md+2
@@ -134,6 +134,8 @@ Version 0.1.35 gives OpenAI's newest models to fresh installs too. The newest-en  Version 0.1.23 opens new Codex editor tabs directly at the prompt. The default ships through Hydrogen’s existing Codex package dependency; it preserves sign-in and permission prompts. See [diagnosis and verification](docs/CODEX-WALKTHROUGH.md). Already-open walkthrough tabs should be closed and reopened. +Version 0.1.43 stops the background watcher from pinning a CPU core. It re-checked the Codex extension every 5 seconds by reading and scanning its multi-megabyte bundles even when nothing had changed (a fresh Hydrogen install on Windows showed it at 100% of one core from boot). It now re-patches an extension only when the size or modification time of a file it patches changes, so an idle check costs a few file stats.+ ## Guardian reviews stay out of the session list (0.1.42)  When Codex reviews a tool action with its Guardian reviewer, it records that review as a thread of its own, named "Guardian review". The Codex sessions list in Hydrogen showed those next to the person's own conversations, several per project (adom/adom-vscode#9). `adom-codex thread list` now leaves out Guardian reviews and every other sub-agent thread, the way Codex's own app does. Nothing is archived or deleted: the reviews stay in Codex's records, and a review that is already open in a tab keeps its name.
package.json+1−1
@@ -4,7 +4,7 @@   "type": "app",   "title": "Codex",   "brief": "Codex in Adom Hydrogen: ecosystem setup, dock dashboard and live engineering demos.",-  "version": "0.1.42",+  "version": "0.1.43",   "description": "Codex in Adom Hydrogen with reusable CAD routing, electrical review, copper-ablation and narrated video skills, plus verified KiCad and Fusion demo progressions.",   "org": "adom",   "needs_sudo": false,
page.json+1−1
@@ -4,7 +4,7 @@   "type": "app",   "title": "Codex",   "brief": "Codex in Adom Hydrogen: ecosystem setup, dock dashboard and live engineering demos.",-  "version": "0.1.42",+  "version": "0.1.43",   "hero": {     "type": "image",     "path": "screenshots/hero.png"
runtime/manage.py+28−1
@@ -36,6 +36,23 @@ def code_revision():     update that changed only guard.py kept the old guard running (0.1.33 on arav-rog, 2026-10-31)."""     return tuple(sorted((p.name, p.stat().st_mtime_ns) for p in ROOT.glob('*.py'))) +def patch_inputs(extension, package):+    """Size and modification time of every file patch() and patch_tour() read, so an unchanged+    extension is recognized without reading the files themselves."""+    files = [extension / 'package.json', extension / package.get('main', 'out/extension.js')]+    assets = extension / 'webview/assets'+    if assets.is_dir():+        files += sorted(p for p in assets.iterdir()+                        if p.suffix == '.css' or (p.suffix == '.js' and p.name.startswith(('app-initial-', 'index-'))))+    out = []+    for p in files:+        try:+            st = p.stat()+            out.append((p.name, st.st_mtime_ns, st.st_size))+        except OSError:+            out.append((p.name, None, None))+    return tuple(out)+ class Integration:     def __init__(self, home):         self.home = home.resolve()@@ -94,13 +111,23 @@ class Integration:     def reconcile(self):         if not self.marker.exists(): return []         result = []+        # The watcher calls this every 5 s. Patching reads and regex-scans the extension's+        # multi-megabyte bundles, which pinned a CPU core while nothing changed (winvm+        # 2026-11-30). Re-patch an extension only when one of the files the patch reads changed.+        seen = self.__dict__.setdefault('_reconciled', {})         for extension in sorted(self.extensions.glob('openai.chatgpt-*')):             manifest = extension / 'package.json'             if not manifest.is_file(): continue             try:                 package = json.loads(manifest.read_text())                 if package.get('publisher') != 'openai' or package.get('name') != 'chatgpt': continue-                result.append(self.patch(extension, package))+                before = patch_inputs(extension, package)+                hit = seen.get(str(extension))+                if hit and hit[0] == before:+                    result.append(hit[1]); continue+                done = self.patch(extension, package)+                seen[str(extension)] = (patch_inputs(extension, package), done)+                result.append(done)             except (OSError, ValueError) as error:                 result.append({'path': str(extension), 'state': 'pending', 'reason': str(error)})         self.write_json(self.state / 'status.json', {'checked_at': time.time(), 'extensions': result})