Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .github/github-repo-workflow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"defaultBranch": "local/cbusillo-overlay",
"projectType": "codex-cli-local-overlay",
"upstreamForkBaseBranch": "fork-main",
"overlayBranch": "local/cbusillo-overlay",
"docs": {
"overview": "README.md",
"agentGuide": "AGENTS.md",
"localOverlay": "docs/local-overlay.md",
"execution": "docs/exec.md",
"sandboxing": "docs/platform-sandboxing.md",
"tuiComposer": "docs/tui-chat-composer.md",
"homebrew": "docs/homebrew.md",
"rustWorkspace": "code-rs",
"upstreamMirror": "codex-rs"
},
"qualityGate": {
"build": {
"default": "./build-fast.sh",
"releasePreflight": "./pre-release.sh",
"localRebuild": "just local-code-rebuild"
},
"test": {
"workspaceNextest": "cd code-rs && cargo nextest run --no-fail-fast --locked",
"tuiFocused": "cd code-rs && cargo test -p code-tui --features test-helpers",
"cloudTasksFocused": "cd code-rs && cargo test -p code-cloud-tasks --tests",
"mcpTypesFocused": "cd code-rs && cargo test -p mcp-types --tests"
},
"scripts": {
"waitForGitHubRun": "scripts/wait-for-gh-run.sh --workflow Release --branch local/cbusillo-overlay",
"cleanupSpace": "just local-cleanup-space --apply",
"overlayUpdate": "just local-overlay-update"
},
"docsRequiredWhen": [
"CLI behavior changes",
"TUI behavior changes",
"sandbox or execution behavior changes",
"release behavior changes",
"local overlay behavior changes",
"Every Code remote inbox behavior changes",
"upstream mirror behavior changes"
]
},
"importantWorkflows": [
"blob-size-policy",
"Preview Build",
"Release",
"Upstream Merge",
"binary-release",
"rust-release-argument-comment-lint",
"rusty-v8-release",
"v8-canary",
"Issue Code",
"Issue Comment",
"Issue Triage"
],
"qaLabels": [],
"deployLabels": [],
"healthUrls": [],
"relatedRepos": ["code-everywhere"],
"validatedThrough": [],
"githubSignals": {
"postMerge": {
"waitForActions": true,
"checkSecurityAndQuality": true
},
"capabilities": {
"codeScanning": "not_enabled",
"secretScanning": "not_enabled",
"dependabotAlerts": "not_enabled",
"securityAdvisories": "available"
},
"refreshWhen": [
"repo visibility changes",
"GitHub plan changes",
"security settings change",
"token permissions change"
]
},
"cleanup": {
"deleteMergedLocalBranches": true,
"removeMergedCleanWorktrees": true
},
"metadataFreshness": {
"updateWhen": [
"docs routing changes",
"validation gates change",
"primary commands change",
"important workflows change",
"repo relationship changes",
"cleanup policy changes",
"GitHub default branch changes",
"overlay branch changes",
"release workflow changes",
"upstream mirror policy changes"
]
}
}
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rust/codex-rs

Repo workflow metadata lives in `.github/github.json`; keep that
Repo workflow metadata lives in `.github/github-repo-workflow.json`; keep that
file aligned with branch roles, validation gates, GitHub signal capabilities,
workflow names, docs routing, and local cleanup policy when those facts change.

Expand Down
12 changes: 0 additions & 12 deletions code-rs/core/src/codex/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1579,19 +1579,7 @@ impl Session {
/// history with additional items for this turn.
/// Browser screenshots are filtered out from history to keep them ephemeral.
pub fn turn_input_with_history(&self, extra: Vec<ResponseItem>) -> Vec<ResponseItem> {
self.turn_input_with_history_preserving_latest(extra, false)
}

pub fn turn_input_with_history_preserving_latest(
&self,
extra: Vec<ResponseItem>,
preserve_latest_history_item: bool,
) -> Vec<ResponseItem> {
let history = self.state.lock().unwrap().history.contents();
let history = crate::history_compaction::compact_response_items_for_model_history(
history,
preserve_latest_history_item,
);

// Debug: Count function call outputs in history
let fc_output_count = history
Expand Down
2 changes: 1 addition & 1 deletion code-rs/core/src/codex/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2576,7 +2576,7 @@ async fn run_agent(
}
review_history.clone()
} else {
sess.turn_input_with_history_preserving_latest(pending_input_tail.clone(), true)
sess.turn_input_with_history(pending_input_tail.clone())
};

let turn_input_messages: Vec<String> = turn_input
Expand Down
Loading