Commit Graph
16 Commits
Author SHA1 Message Date
dasemuandClaude Sonnet 5 722ea15f36 fix: clean stale X11 lock files before starting Xvfb
docker stop/start reuses the same container filesystem (not tmpfs
here), so a stale .X99-lock and X11 socket from a previous run make
Xvfb fail to bind silently on the next start — the server then runs
with no display at all and every browser launch fails.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-08 21:16:12 +02:00
dasemu 9d54c4e1d8 Merge pull request 'fix: never return the reference image as the generated result' (#1) from claude/reference-image-result-bug-2e2179 into main
Reviewed-on: Zenvairo/chatgpt-unofficial-imagegen-mcp#1
2026-10-08 16:03:35 +00:00
dasemuandClaude Sonnet 5.5 972f6ae143 fix: never return the reference image as the generated result
Take the image baseline after attaching references so composer thumbnails
are excluded, and reject downloads byte-identical to a reference so the
job is retried in a fresh chat.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 17:28:42 +02:00
dasemuandClaude Sonnet 5 6fed2cd382 fix: start Xvfb manually instead of via xvfb-run
xvfb-run's readiness check waits for Xvfb to send SIGUSR1, which this
build never does — it hangs forever even though the X11 socket comes
up fine. Starting Xvfb directly with a short fixed sleep is more
reliable here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-08 07:27:59 +02:00
dasemuandClaude Sonnet 5 c550cea4a3 chore: add nixpacks.toml for Xvfb + Playwright Chromium
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-08 07:18:38 +02:00
dasemuandClaude Opus 5.5 cd756012d7 docs: describe self-heal auto-merge, live smoke test and rollback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:17:31 +02:00
dasemuandClaude Opus 5.5 51cd5b1e40 feat: auto-merge and deploy self-heal patches that pass a live smoke test
The patched code must generate a real image on chatgpt.com (src/smoke.ts)
before the PR is squash-merged and scripts/update.sh deploys it. Patches
failing the live check stay as open PRs. The self-heal state and cooldown
are restored from the log after the service restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:17:31 +02:00
dasemuandClaude Opus 5.5 d456081aac docs: document codex self-heal setup, risks and settings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:13:11 +02:00
dasemuandClaude Opus 5.5 550396d7ed feat: self-heal the chatgpt.com scraper with codex and open a PR
After SELFHEAL_FAILURE_THRESHOLD consecutive UI_CHANGED/TURN_TIMED_OUT
failures the queue snapshots the logged-in profile and runs
scripts/selfheal.sh: codex exec in yolo mode on a throwaway clone, with a
Playwright + playwright-stealth inspector to study the live frontend.
Changes are limited to src/chatgpt and test fixtures, must pass typecheck
and tests, and are pushed as a pull request for human review.
Disabled by default (SELFHEAL_ENABLED).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 20:13:11 +02:00
dasemuandClaude Opus 5.5 f7e7148135 feat: retry transient chatgpt.com failures in a fresh chat
Timeouts, UI glitches, text-only replies and browser errors get up to
CHATGPT_RETRIES extra attempts with a growing pause; a crashed browser is
relaunched. Usage limits, lost sessions and refusals still fail at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:24:05 +02:00
dasemuandClaude Opus 5.5 d751acfe63 docs: add README, session, architecture, deployment and update guides
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:09:51 +02:00
dasemuandClaude Opus 5.5 981dc3b941 test: cover helpers, job queue and chatgpt.com DOM fixtures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:09:51 +02:00
dasemuandClaude Opus 5.5 5a6bc4aeb9 feat: add authenticated self-update endpoint, update script and systemd unit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:09:51 +02:00
dasemuandClaude Opus 5.5 b46db0cf6a feat: generate images through chatgpt.com with Playwright behind an MCP server
Port of ZenvairoProspect's imagegen (legacy/whatsapp-mockup) to the
ZenvairoMediaGenerator-MCP submit+poll contract: persistent logged-in
Chromium profile, selector fallback lists, serial queue with pacing and a
circuit breaker for usage limits and lost sessions, signed public URLs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:09:51 +02:00
dasemuandClaude Opus 5.5 15c2a90f08 chore: scaffold TypeScript project with Playwright
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:09:51 +02:00
dasemuandClaude Opus 5.5 7d5da95403 chore: initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:58:41 +02:00