-
Notifications
You must be signed in to change notification settings - Fork 0
fix: restore Codex app-server compatibility and mobile containment #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4d4a566
fix: support current Codex app-server catalogs
nonnil 468ccc8
fix: contain mobile settings and Moment layouts
nonnil 2c75e1e
chore: harden audited dependencies
nonnil 65b4ef2
test: stabilize cross-process migration coverage
nonnil 8f2e0ed
fix: tolerate loaded concurrent migrations
nonnil 60054d4
test: await Psychiatrist finalizer observations
nonnil aaa86b3
fix: migrate Codex reasoning effort constraints
nonnil 142c8c8
test: harden reviewed responsive isolation
nonnil 4cc43fe
test: prove migration child rows survive
nonnil d02f4dc
test: preserve merged worker output
nonnil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| PRAGMA foreign_keys=OFF;--> statement-breakpoint | ||
| CREATE TABLE `__new_app_settings` ( | ||
| `id` text PRIMARY KEY NOT NULL, | ||
| `translation_target_language` text DEFAULT 'ja-JP' NOT NULL, | ||
| `codex_translation_model` text, | ||
| `codex_translation_reasoning_effort` text, | ||
| `created_at` integer NOT NULL, | ||
| `updated_at` integer NOT NULL, | ||
| CONSTRAINT "app_settings_id_check" CHECK("id" = 'default'), | ||
| CONSTRAINT "app_settings_translation_target_language_check" CHECK("translation_target_language" in ('ja-JP', 'en-US', 'en-GB', 'ko-KR', 'zh-CN', 'zh-TW', 'fr-FR', 'de-DE', 'es-ES', 'pt-BR')), | ||
| CONSTRAINT "app_settings_codex_translation_reasoning_effort_check" CHECK("codex_translation_reasoning_effort" is null or "codex_translation_reasoning_effort" in ('none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max', 'ultra')) | ||
| ); | ||
| --> statement-breakpoint | ||
| INSERT INTO `__new_app_settings`("id", "translation_target_language", "codex_translation_model", "codex_translation_reasoning_effort", "created_at", "updated_at") SELECT "id", "translation_target_language", "codex_translation_model", "codex_translation_reasoning_effort", "created_at", "updated_at" FROM `app_settings`;--> statement-breakpoint | ||
| DROP TABLE `app_settings`;--> statement-breakpoint | ||
| ALTER TABLE `__new_app_settings` RENAME TO `app_settings`;--> statement-breakpoint | ||
| PRAGMA foreign_keys=ON;--> statement-breakpoint | ||
| CREATE TABLE `__new_translation_jobs` ( | ||
| `job_id` text PRIMARY KEY NOT NULL, | ||
| `memory_id` text NOT NULL, | ||
| `lang_code` text NOT NULL, | ||
| `source_hash` text NOT NULL, | ||
| `model` text, | ||
| `reasoning_effort` text, | ||
| `prompt_policy_version` text NOT NULL, | ||
| `chunker_version` text NOT NULL, | ||
| `status` text NOT NULL, | ||
| `chunk_count` integer DEFAULT 0 NOT NULL, | ||
| `output_path` text, | ||
| `output_hash` text, | ||
| `error` text, | ||
| `completed_at` integer, | ||
| `created_at` integer NOT NULL, | ||
| `updated_at` integer NOT NULL, | ||
| FOREIGN KEY (`memory_id`) REFERENCES `memories`(`id`) ON UPDATE no action ON DELETE cascade, | ||
| CONSTRAINT "translation_jobs_status_check" CHECK("status" in ('pending', 'running', 'stale', 'cancel_requested', 'canceled', 'unavailable', 'stitching', 'committing', 'complete', 'failed')), | ||
| CONSTRAINT "translation_jobs_source_hash_check" CHECK("source_hash" glob 'sha256:*'), | ||
| CONSTRAINT "translation_jobs_output_hash_check" CHECK("output_hash" is null or "output_hash" glob 'sha256:*'), | ||
| CONSTRAINT "translation_jobs_reasoning_effort_check" CHECK("reasoning_effort" is null or "reasoning_effort" in ('none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max', 'ultra')), | ||
| CONSTRAINT "translation_jobs_chunk_count_check" CHECK("chunk_count" >= 0) | ||
| ); | ||
| --> statement-breakpoint | ||
| INSERT INTO `__new_translation_jobs`("job_id", "memory_id", "lang_code", "source_hash", "model", "reasoning_effort", "prompt_policy_version", "chunker_version", "status", "chunk_count", "output_path", "output_hash", "error", "completed_at", "created_at", "updated_at") SELECT "job_id", "memory_id", "lang_code", "source_hash", "model", "reasoning_effort", "prompt_policy_version", "chunker_version", "status", "chunk_count", "output_path", "output_hash", "error", "completed_at", "created_at", "updated_at" FROM `translation_jobs`;--> statement-breakpoint | ||
| DROP TABLE `translation_jobs`;--> statement-breakpoint | ||
| ALTER TABLE `__new_translation_jobs` RENAME TO `translation_jobs`;--> statement-breakpoint | ||
| CREATE UNIQUE INDEX `translation_jobs_current_complete_idx` ON `translation_jobs` (`memory_id`,`lang_code`,`source_hash`) WHERE "translation_jobs"."status" = 'complete';--> statement-breakpoint | ||
| CREATE UNIQUE INDEX `translation_jobs_active_idx` ON `translation_jobs` (`memory_id`,`lang_code`,`source_hash`) WHERE "translation_jobs"."status" in ('pending', 'running', 'cancel_requested', 'stitching', 'committing');--> statement-breakpoint | ||
| CREATE INDEX `translation_jobs_memory_lang_idx` ON `translation_jobs` (`memory_id`,`lang_code`,`updated_at`); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.