-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Description
What version of Codex is running?
0.89.0, 0.90.x, 0.91.x, 0.92.0
What subscription do you have?
Pro
Which model were you using?
all
What platform is your computer?
Windows 11
What terminal emulator and version are you using (if applicable)?
VSCode Terminal / Windows Terminal / PowerShell
What issue are you seeing?
When pasting a large block of text with multiple newlines into the CLI, two issues occur simultaneously:
Auto-send: The CLI immediately interprets the paste as a submission command (as if Enter was pressed), without waiting for user confirmation.
Newline stripping: The content that gets sent to the model loses all line breaks, collapsing structured text (tables, lists, logs) into a single line/paragraph.
I have confirmed that rolling back to v0.87.0 resolves this issue completely (text pastes correctly, retains format, and waits for Enter).
What steps can reproduce the bug?
Start the Codex CLI (v0.89.0 or newer).
Copy the following long block of text (which contains intentional line breaks, tables, and lists).
Paste it into the input field.
Test Payload (Copy this):
SCM 整合性監査レポート (2026-01-28 更新)
進捗は順調です 🎉
前回の監査と比較して、重要な作業の多くが完了しました:
コンポーネント 前回状態 現在状態 変化
StateVariableSpec SCM フィールド ❌ 未拡張 ✅ 10フィールド追加 新規
record_state_update() ❌ 未実装 ✅ 76行の完全実装 新規
変数レベル契約 YAML 0 個 24 個 新規
現在の達成度
Phase 1 (Schema & Tools): 4/4 ✅ 100%
Phase 2 (Runtime): 1/3
Phase 3 (PROV): 1/1 ✅ 100%
Phase 4 (Tests & Data): 1/3
────────────────────────────────
全体: 7/11 (64%) ↑ 40%から上昇
✅ 完了済み
コンポーネント 詳細
StateVariableSpec 追加: cf_standard_name, kind, owner, writers, aliases, incrementable, accumulates, flux_in, flux_out, numerics
contract_loader.py 218行, 18メソッド, 完全なレジストリ機能
conservation_guardian.py 117行, 参考文献と数式を含む
contractgen.py 105行, 契約ドラフトの自動スキャン生成
record_state_update() 76行, ステップ増分とPROV関係の完全なログ記録
変数契約 24個のコア変数 (GPP, soil_moisture, ch4_* 等)
❌ 保留中
タスク 優先度 工数
StateManager と ContractRegistry の統合 P0 ~50行
Simulator 増分集計チェック P1 ~30行
domains/ 保存領域定義の作成 P1 ~3つの YAML
テスト権限エラーの修正 P2 調査
契約内容の改善 (owner/writers 等) P2 24個のYAMLレビュー
テストの問題
contract_loader.test.py が権限エラー (PermissionError: [WinError 5]) を報告。一時ディレクトリのアクセス問題の可能性。提案:
bash
管理者として実行、または tmp_path を確認
pytest test\unit\contracts\contract_loader.test.py -v --basetemp=F:\temp
What is the expected behavior?
The text should be pasted into the input buffer exactly as copied (preserving the visual structure and newlines) and should wait for the user to press Enter manually before sending.
Additional information
This appears to be a regression introduced after v0.87.0. The handling of standard input or paste events seems to have changed, causing the CLI to interpret newlines in the clipboard as submission triggers.