fix(merge): integrate gitea/main fork — renumber migrations, dedup, fix paired_tasks insert
Resolves the gitea/main <-> deployed-line merge: - DB migrations: renumber gitea's colliding 019/020 to 021/022 (reviewer_failure_count -> v21, turn_progress_text_compat -> v22) so all four migrations have distinct versions; update ordered list + bootstrap test. - paired_tasks INSERT: add the missing VALUES placeholder so both new columns (reviewer_failure_count + arbiter_intervention_count) bind (26 cols/values). - index.ts: drop duplicate startUsagePrimer import from the auto-merge. - discord output: keep the deployed pipeline (attachment rejection notice) and call sanitizeForOutbound at the channel boundary so prose escaping done in prepareDiscordOutbound is not double-applied; keep gitea's reviewer silent-failure cap + router markdown-escape helpers. - usage-primer/codex-warmup: keep the dawn-hold removal over gitea's primer. Full test suite: only pre-existing env/bun-path failures remain; no merge regressions. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
appendRejectionNotice,
|
||||
validateOutboundAttachments,
|
||||
} from '../outbound-attachments.js';
|
||||
import { formatOutbound } from '../router.js';
|
||||
import { sanitizeForOutbound } from '../router.js';
|
||||
import { hasReviewerLease } from '../service-routing.js';
|
||||
import type {
|
||||
DeleteRecentMessagesByContentOptions,
|
||||
@@ -419,7 +419,10 @@ export class DiscordChannel implements Channel {
|
||||
|
||||
// Convert @username mentions to Discord mention format
|
||||
cleaned = cleaned.replaceAll('@눈쟁이', '<@216851709744513024>');
|
||||
cleaned = formatOutbound(cleaned);
|
||||
// Markdown escaping already happened in prepareDiscordOutbound (prose
|
||||
// escaped, structured output / fenced code preserved). Here we only
|
||||
// re-sanitize so we don't double-escape the delimiters.
|
||||
cleaned = sanitizeForOutbound(cleaned);
|
||||
|
||||
// Surface rejected attachments in the visible message. The MEDIA:
|
||||
// directive was already stripped from the text, so without this the user
|
||||
|
||||
Reference in New Issue
Block a user