subagent-limit-guard still unconditionally rewrites [features.multi_agent_v2] max_concurrent_threads_per_session = 1000 (v4.17.0) — v2 follow-up to #97
Summary
ensureSubagentConcurrencyLimit() ends by calling ensureMultiAgentV2ThreadLimit(result) unconditionally, and that helper writes [features.multi_agent_v2] max_concurrent_threads_per_session = 1000 into the user's config.toml on every run — creating the section if absent, and overwriting any user-set value if present. This happens regardless of the selected model, and there is no equivalent of the "hand-removed key stays removed" behavior that the same file deliberately implements for the legacy agents.max_threads path.
Pinned source at v4.17.0 (f39306f):
- Constant
CODEX_SUBAGENT_THREAD_LIMIT = "1000": subagent-limit-guard.mjs#L5 - Unconditional call at the end of
ensureSubagentConcurrencyLimit: subagent-limit-guard.mjs#L38 - Writer that inserts/overwrites the key: subagent-limit-guard.mjs#L81-L90
Why it matters
On multi_agent_v2 sessions (e.g. gpt-5.6-sol), max_concurrent_threads_per_session is effectively the only concurrency gate that holds:
agents.max_depthis not enforced on the v2 spawn path (openai/codex#32027, still open)- the v2 non-root thread limit is derived from this cap (
cap − 1) - in our testing on codex-cli 0.144.1,
[features.multi_agent_v2] enabled = falsedid not disable v2 forgpt-5.6-sol— model catalog metadata took precedence
We audited a runaway session on codex-cli 0.144.1 + gpt-5.6-sol where the injected runtime hint "There are 1000 available concurrency slots" appeared 23× in the rollout, alongside a spawn tree of 1,004 descendant threads (depth 11) and ~46 GB RSS before manual intervention. After we restored Codex's stock default (cap 4) by deleting the override, source inspection showed this migration would silently re-write 1000 on the next session start with the plugin enabled — i.e. a user who fixes their config gets re-broken.
What v4.17.0 already improved (appreciated)
- v2-preferring models now get
agents.max_threadsremoved instead of written (thev2Preferredbranch inensureSubagentConcurrencyLimit), and a hand-removed key stays removed on the no-model-evidence path - the #118 stale
hide_spawn_agent_metadatacleanup works as described
The v2 cap write is the remaining piece of #97.
Suggested fix
Any of, in order of preference:
- Stop writing
max_concurrent_threads_per_sessionunless the user opts in - Honor existing / hand-removed user values, mirroring the
raiseExistingAgentsMaxThreadsphilosophy already applied to the v1 key - At minimum, make the limit configurable instead of hard-coding
"1000"
LAZYCODEX_CONFIG_MIGRATION_DISABLED=1 exists but is all-or-nothing — enabling it also loses the genuinely useful guards (e.g. the #118 cleanup).
Environment
- codex-cli 0.144.1, model
gpt-5.6-sol(multi_agent_v2), macOS - Originally observed with OMO 4.15.1; behavior confirmed by source inspection at
v4.17.0(f39306f)
Independent Windows-native confirmation
I independently reproduced the unsafe amplification described here on native Windows Codex Desktop. This adds runtime, A/B, and actual spawn-tree evidence to the source-level report above.
Environment
- Windows 11
10.0.26200x64 - Codex Desktop MSIX
26.707.8168.0 codex-cli 0.144.1- LazyCodex /
omo@sisyphuslabs4.17.0 - Model:
gpt-5.6-sol/ MultiAgentV2 - Install:
npx --yes [email protected] install --no-tui --codex-autonomous
Reproduction
- Install and enable LazyCodex 4.17.0 in Codex Desktop.
- Let SessionStart/bootstrap run with several existing chats and run normal subagent/review workloads.
- Remove
[features.multi_agent_v2] max_concurrent_threads_per_session = 1000manually. - Run a normal read-only Codex initialization surface such as
codex plugin listor start another session. - Observe that the migration writes the 1000-thread override back.
Disabling CodeGraph alone stopped new graph workers but did not make removal of the concurrency override durable. Disabling the owning OMO plugin, removing the override, and restarting Desktop stopped both the rewrite and the hook/MCP fan-out.
Runtime toggle evidence
With OMO enabled and the 1000-thread override present:
- App server descendants:
345 - OMO-related processes:
174 - CodeGraph:
29per-session sets /116processes - OMO working set:
6274.6 MB - Exact no-tool prompt wall time:
25179 ms
After disabling OMO, removing the override, and restarting Desktop:
- App server descendants:
13 - OMO / CodeGraph / OMO LSP / OMO Git Bash processes:
0 - Same exact no-tool prompt:
7110 ms, then4347 ms - Both probes exited
0, returned the exact expected text, and reported non-zero token usage. - Re-running
codex plugin listandcodex features listno longer recreated the override.
Actual nested expansion observed
I reconstructed the authoritative thread_spawn_edges table and verified each maximum-depth chain against the raw rollout session_meta.source.subagent.thread_spawn object.
During the LazyCodex-enabled window (2026-07-13 09:17:32-11:34:09 KST), Codex created 39 subagent threads:
- depth 1:
31 - depth 2:
3 - depth 3:
5 - observed maximum depth:
3
One verified chain was:
root
└─ Harvey depth 1
└─ Curie depth 2
└─ Meitner depth 3
The installation/diagnostic root itself spawned five direct depth-1 agents during this window. The depth-3 expansion occurred in another active root under the same global config. This does not mean the value 1000 automatically created those agents; it shows that the forced cap removed the normal safety boundary while real nested fan-out was occurring.
Source confirmation and ownership
Current LazyCodex main is still commit f39306f1adab6ff155fd736cc7376d27156472bc / plugin version 4.17.0:
- hard-coded value:
subagent-limit-guard.mjs#L5 - unconditional call:
#L38 - create/overwrite writer:
#L81-L90
Upstream Codex 0.144.1 defines the stock MultiAgentV2 concurrent-session cap as 4; LazyCodex raises it to 1000. Codex Desktop's per-chat MCP lifecycle amplifies the resource impact, but the forced configuration mutation and rewrite are owned by LazyCodex.
Suggested verification criteria for a fix
- A clean install does not write
max_concurrent_threads_per_sessionwithout explicit user opt-in. - An absent or hand-removed key stays absent across SessionStart/bootstrap runs.
- Existing user values are preserved rather than overwritten.
- Windows-native bootstrap tests cover the no-write/preserve behavior.
- A GPT-5.6 Sol regression test verifies that LazyCodex leaves the stock V2 cap in effect by default.
This issue or PR was generated by LazyCodex. Tag: lazycodex-generated
Independent macOS confirmation with MCP resource amplification
Summary
This independently confirms the issue on OMO 4.18.1. The forced max_concurrent_threads_per_session = 1000 did not itself create work, but it removed Codex's stock safety boundary. A real nested-agent workload then reached about 140 active agent rollouts; because each agent thread initialized its own configured MCP stack, process count, memory, swap, and CPU grew until the machine was saturated.
codebase-memory-mcp was one of the configured stdio MCP servers and amplified the per-agent cost, but a controlled single-instance smoke showed no independent CPU/worker leak.
Environment
- LazyCodex / OMO:
4.18.1 - LazyCodex source HEAD checked:
098177c52a4fc989cc1f8ac6fb3f94e330fb63d3 - Codex CLI:
0.144.4 - Upstream Codex source HEAD checked:
3f74f00295dcb1346340686bb09c5bfd4f0237c4 - OS: macOS 27.0, arm64
- MCP involved:
codebase-memory-mcp 0.9.0over stdio - Relevant config before mitigation:
[features.multi_agent_v2] max_concurrent_threads_per_session = 1000
Repository Decision
- Target repository:
code-yeongyu/lazycodex(this existing issue) - Why this belongs here: OMO's SessionStart config migration originates and persists the unsafe override.
- LazyCodex evidence:
subagent-limit-guard.mjshard-codes1000; the function calls the v2 writer unconditionally and inserts or replaces the setting. SessionStart invokes the config migration unless the all-or-nothing migration opt-out is set. - Upstream Codex evidence: current upstream defines
DEFAULT_MULTI_AGENT_V2_MAX_CONCURRENT_THREADS_PER_SESSION = 4, not 1000.
Reproduction
-
Start with a v2 Codex config containing an explicit safe cap:
[features.multi_agent_v2] enabled = true max_concurrent_threads_per_session = 4 -
Run the current OMO 4.18.1 migration helper as SessionStart does:
ensureSubagentConcurrencyLimit(config, { multiAgentVersion: "v2" }) -
Observe the deterministic transform:
-max_concurrent_threads_per_session = 4 +max_concurrent_threads_per_session = 1000 -
Run a nested multi-agent workload with one or more global stdio MCP servers configured. The exact process count depends on workload and registered MCPs, but the normal cap no longer bounds fan-out.
The direct 4 -> 1000 transform was repeated against the latest source. The repository's own test is explicitly named #given SessionStart config migration sees a low subagent cap #when migrating #then raises it to 1000.
Expected Behavior
LazyCodex should leave an explicit user concurrency cap unchanged and should not add a v2 cap when the key is absent. With no user override, Codex's stock cap of 4 should remain effective.
Actual Behavior
OMO silently replaces the explicit cap with 1000. In the observed workload, the resulting fan-out produced this live snapshot before manual intervention:
- about 140 open agent rollouts
- about 137 per-agent MCP stacks
- 1,764 direct children under the runaway Codex root
- 3,634 processes system-wide
- about 24.6 GiB attributed to the Codex process tree
- CPU saturation and swap growth
After stopping the runaway root, restoring the cap to 4 in all active Codex homes, and setting LAZYCODEX_CONFIG_MIGRATION_DISABLED=1, the effective Codex prompt reported exactly 4 available slots and the system recovered.
Evidence
Controlled migration repro
BEFORE
[features.multi_agent_v2]
enabled = true
max_concurrent_threads_per_session = 4
AFTER
[features.multi_agent_v2]
enabled = true
max_concurrent_threads_per_session = 1000
codebase-memory-mcp control
A single idle codebase-memory-mcp 0.9.0 stdio instance was held open for two seconds:
CPU=0.0%
RSS=10816 KiB
direct_children=0
survivor_after_graceful_stop=no
This distinguishes a single-server leak from multiplication caused by per-agent MCP initialization. The MCP server adds real per-agent cost, but the unsafe concurrency mutation is the trigger that removes the normal upper bound.
Local configuration timeline
- A 2026-06-27 backup contained an older local value of
10000. - OMO 4.14.0, the first locally cached release containing the 1000 guard, installed on 2026-06-30.
- A 2026-07-10 backup contained
1000. - Current OMO 4.18.1 still contains and tests the same forced value.
Root Cause
ensureSubagentConcurrencyLimit() always finishes by calling ensureMultiAgentV2ThreadLimit(). That helper uses the hard-coded string 1000 and replaces any existing max_concurrent_threads_per_session value. SessionStart runs this migration repeatedly, so a user repair is not durable unless all LazyCodex config migration is disabled. Once the cap is raised, normal nested agent behavior can initialize a separate MCP stack per thread and multiply the cost of every registered stdio MCP server.
The high cap does not automatically spawn 1000 agents; it removes the stock boundary that would have stopped the observed real workload at 4.
Proposed Fix
- Do not insert
max_concurrent_threads_per_sessionwithout explicit user opt-in. - Preserve any existing user value instead of replacing it.
- Remove a legacy LazyCodex-managed
1000only when migration state proves LazyCodex wrote it; otherwise preserve it as a possible user choice. - Change the migration tests from “raises it to 1000” to no-write/preserve-existing expectations.
- Keep useful config repairs independently selectable so users do not need the all-or-nothing
LAZYCODEX_CONFIG_MIGRATION_DISABLED=1workaround.
Verification Plan
- A config containing
4remains4after SessionStart. - A config with no v2 cap remains without one after SessionStart.
- An explicit non-default user cap remains unchanged.
- A proven legacy LazyCodex-managed
1000is safely removed or migrated. - A GPT-5.6 Multi-Agent v2 smoke reports 4 available slots with default upstream configuration.
- A workload with a global stdio MCP never exceeds the expected
active top-level sessions × configured capagent/MCP fan-out.
This issue or PR was generated by LazyCodex. Tag: lazycodex-generated
Independent Linux confirmation: ulw-research self-activation produced 579 descendants
This independently confirms the runaway risk in OMO 4.18.1 and adds a concrete activation path: an ordinary delegated testing task self-promoted into a ulw-research orchestrator, then recursively reproduced that behavior.
Environment
- Debian GNU/Linux 13, x86_64
- Codex CLI
0.144.4 - LazyCodex / OMO
4.18.1 - Model:
gpt-5.6-sol/ MultiAgentV2 - LazyCodex source checked:
098177c52a4fc989cc1f8ac6fb3f94e330fb63d3 - Upstream Codex source checked:
cbc83d961e8132bfff4d340ab8342d181b79e95e - Effective config contained
[features.multi_agent_v2] max_concurrent_threads_per_session = 1000
Trigger
The user's direct request was bounded Chrome-extension planning; it did not request research, deep research, or ulw-research.
A parent delegated one read-only task to propose a source-grounded test strategy. The child then emitted:
I’m using the
ulw-researchskill because this deliverable explicitly asks for a source-grounded explorer/librarian investigation
It immediately loaded ulw-research, announced ULW-RESEARCH MODE ENABLED!, and spawned seven children with fork_turns: "all". At least one of those children repeated the same activation statement and began its own spawn wave.
That contradicts the shipped skill's stated policy that it activates only on explicit user demand and never for another mode's context gathering. The skill also says research workers have “No recursion”, but that is prose only: every MultiAgentV2 child still has spawn_agent and can reinterpret itself as a new orchestrator.
Authoritative spawn-tree evidence
A recursive CTE over Codex's thread_spawn_edges table, rooted at the original testing child, produced:
- direct children:
7 - total descendants:
579 - maximum depth below that child:
9 - depth distribution:
7, 28, 84, 130, 102, 85, 108, 32, 3 - aggregate descendant
threads.tokens_used:345,051,818 - original testing-child counter:
2,456,261
The token totals are raw per-thread counters, not exact billed usage; cached-token and quota accounting differ. Codex telemetry nevertheless showed weekly usage at 49% when the cascade was diagnosed and 50% shortly afterward, consistent with the user's observed impact.
No product implementation was produced by the cascade.
Why the 1,000-thread override is causal amplification
Current OMO still hard-codes the V2 cap to 1,000 and unconditionally inserts or replaces it. Its regression test explicitly expects a low cap to be raised to 1,000.
Current upstream Codex defaults MultiAgentV2 to four concurrent session threads, while the V2 spawn path intentionally ignores agents.max_depth. Therefore the LazyCodex override removes the only effective bound that could contain this misactivation.
The override does not create work by itself. The observed chain was:
- delegated context-gathering was mistaken for direct user opt-in;
ulw-researchrequired a multi-agent saturation wave;- full-history forks propagated the triggering context;
- children could self-promote into orchestrators despite the “No recursion” prose rule;
- the forced 1,000-thread cap allowed the cascade to expand to quota-scale impact.
Additional fix criteria
The cap-preservation changes already proposed in this issue remain essential. This reproduction suggests two additional defenses:
- Root-only activation: auto-activate
ulw-researchonly from a direct root user turn. A subagent should require an explicit structured opt-in from its parent; “source-grounded”, “librarian”, or ordinary delegated research-like wording must not count. - Enforce worker non-recursion: research workers should not receive
spawn_agent, or the harness should reject spawn calls from worker-designated descendants. Do not rely on prose. - No full-history research forks by default: enforce
fork_turns: "none"for research workers so activation context cannot propagate accidentally. - Budget the whole tree: add a hard cumulative descendant budget as well as a concurrent cap. A small concurrency cap alone still permits unbounded sequential churn as slots are released.
- Regression tests: a delegated “source-grounded test strategy” prompt must not activate
ulw-research; explicit root$ulw-researchmust still activate; a worker spawn attempt must be rejected; and the tree must stop at its configured cumulative budget.
Related routing behavior is also discussed in #124, but this is a separate concrete trigger involving delegated task provenance and recursive ulw-research activation.
This issue or PR was generated by LazyCodex. Tag: lazycodex-generated
Additional macOS reproduction: 44-thread DESIGN.md workflow
This is an independent OMO 4.18.1 reproduction of the amplification described in this issue. The workflow explicitly requested start-work, ulw-loop, teammode, and localhost visual QA, so some initial fan-out was expected. However, the LazyCodex-managed 1000-thread override removed upstream Codex's normal concurrency boundary while nested implementation, review, and QA agents continued spawning.
Environment
- LazyCodex / OMO:
4.18.1 - Codex CLI:
0.144.5 - Model:
gpt-5.6-terra - Multi-agent transport: MultiAgentV2
- OS: macOS
- Relevant effective setting in both active Codex homes:
max_concurrent_threads_per_session = 1000
Runtime evidence
The authoritative thread_spawn_edges tree for the affected root contained:
| Depth | Threads |
|---|---|
| 0 | 1 |
| 1 | 8 |
| 2 | 13 |
| 3 | 16 |
| 4 | 6 |
- Total threads:
44 - Maximum depth:
4 - Current aggregate
threads.tokens_usedcounters:164,178,723
The token value is a raw sum of per-thread state counters, not an exact billed-token or quota measurement.
For the DESIGN.md turn alone (~71m10s wall time):
wait_agentcalls:83- Time inside
wait_agent:3129.8s(~52m10s) - Timed-out waits:
38 - Time consumed by timed-out waits:
2282.3s(~38m02s)
Across the full relevant workflow (~2h06m41s):
wait_agentcalls:122- Time inside
wait_agent:4278.5s(~71m19s) - Timed-out waits:
47 - Time consumed by timed-out waits:
2762.9s(~46m03s)
The document content itself was produced early. Most of the long tail came from nested implementation verification, security review, runtime auditing, browser QA fallback, and repeated waits.
Affected release and LazyCodex mirror reproduction
Latest LazyCodex main checked: f2e96af
Calling ensureSubagentConcurrencyLimit() with MultiAgentV2 selected still transforms:
[features.multi_agent_v2]
enabled = true
max_concurrent_threads_per_session = 4
into:
[features.multi_agent_v2]
enabled = true
max_concurrent_threads_per_session = 1000
The current LazyCodex source still hard-codes CODEX_SUBAGENT_THREAD_LIMIT = "1000" and unconditionally applies the V2 limit in subagent-limit-guard.mjs.
Latest upstream Codex checked: 726b637. Its default remains DEFAULT_MULTI_AGENT_V2_MAX_CONCURRENT_THREADS_PER_SESSION = 4 in config/mod.rs.
Canonical oh-my-openagent source status
lazycodex-ai ships the Codex package maintained under packages/omo-codex in code-yeongyu/oh-my-openagent; code-yeongyu/lazycodex is the generated distribution mirror.
The canonical defect was already confirmed in oh-my-openagent#6101. PR #6153 was merged as 13e5608 and now:
- preserves an explicit V2 cap in the installer path;
- defaults an absent V2 cap to
16; - applies the same preserve-or-default behavior in the SessionStart migration.
PR #6093 remains open and explicitly covers migration of historical OMO-managed 1000 values and Fixes code-yeongyu/lazycodex#130. Therefore this field report is release/distribution evidence for affected OMO 4.18.1 and for validating that the canonical fix and legacy migration reach the LazyCodex package, rather than a new canonical-source bug report.
Root-cause boundary
The explicit team and QA request explains why agents were requested; it does not explain why the normal upstream safety boundary was replaced with 1000. The confirmed defect in the affected package is the deterministic config mutation. In this run it acted as causal amplification: nested work reached 44 threads and depth 4, while no cumulative descendant, elapsed-time, or token budget stopped the tree. Canonical source has addressed preservation/default behavior; affected installations and the generated LazyCodex mirror still need the fix and historical-value migration to land through release synchronization.
Additional verification criteria
- A user value of
4remains4after LazyCodex bootstrap and SessionStart migration. - An absent concurrency key receives the canonical conservative default
16, never1000. - A historical OMO-managed
1000value is migrated without changing arbitrary user-owned caps. - A bounded team workflow cannot exceed an explicit cumulative descendant/depth budget even if child agents can spawn.
- Repeated
wait_agenttimeouts do not permit unbounded verification expansion after the requested artifact is already complete.
This issue or PR was generated by LazyCodex. Tag: lazycodex-generated
Acknowledged, and thank you to @catallactics, @ameforce, @cineraria01, @parasquid, and @suho-han for the independent Windows/macOS/Linux reproductions with concrete spawn-tree and rollout counts. The evidence that the forced [features.multi_agent_v2] max_concurrent_threads_per_session = 1000 removes Codex's stock concurrency boundary (and thereby amplifies a real nested workload) is clear and well-documented.
This one is a deliberate-design call rather than a mechanical bug: the limit table is written intentionally (without enabling MultiAgentV2), so changing whether/what it writes is a maintainer decision, not something to flip unilaterally on top of an existing explicit choice. I'm escalating this to @code-yeongyu for that decision - specifically whether to stop forcing 1000, lower the default, or gate it - and it stays open until then. Not closing this with a "works as intended" hand-wave given the runaway-resource evidence.
Additional macOS / GPT-5.6 Sol / MultiAgentV2 reproduction (OMO 4.18.1)
This issue produced a user-visible memory failure twice on a 36 GiB Apple Silicon Mac during a single $ulw-plan productization-planning thread.
Environment
- LazyCodex / OMO:
4.18.1 - Codex Desktop:
26.721.41059(build5848) - Bundled Codex CLI:
0.146.0-alpha.3.1 - macOS:
26.5.2(25F84) - Hardware:
Mac16,5, 36 GiB RAM - Parent model:
gpt-5.6-sol - Multi-agent surface recorded in the rollout:
v2 - Effective config after restart:
[features.multi_agent_v2] max_concurrent_threads_per_session = 1000
Reproduction
- Run a non-trivial productization request through
$ulw-planon GPT-5.6 Sol. - Allow the workflow to perform its collect / verify / design stages and high-accuracy review.
- Continue review rounds when Momus requests changes.
- Codex Desktop eventually exhausts memory / becomes unusable and has to be restarted.
The same thread produced two separate user reports of a memory-related shutdown. I did not deliberately repeat the full failure a third time because it had already exhausted system memory twice.
Rollout evidence
Read-only aggregation of the local rollout JSONL (prompt and repository contents omitted):
- 3,234 rollout records
- 34
spawn_agentattempts - 31 unique task names
- 18 Momus spawn attempts
- 15 distinct Momus review rounds (
r1throughr15) - 3 attempted
fork_turns: "all"spawns - first memory-shutdown report occurred between review rounds
r2andr3 - the review chain later continued through
r15
Source evidence
The installed 4.18.1 copy of scripts/migrate-codex-config/subagent-limit-guard.mjs unconditionally writes:
[features.multi_agent_v2]
max_concurrent_threads_per_session = 1000
The installed 4.18.1 ulw-plan/references/full-workflow.md also requires two review lanes per high-accuracy round:
- native Momus
- an independent Codex CLI review on
gpt-5.6-solat xhigh
It instructs the workflow to fix findings and submit both reviewers again until both approve. The installed role configs route plan, momus, metis, and the gate reviewer to GPT-5.6 Sol; Momus uses ultra reasoning.
The latest LazyCodex source at 895b70cb8cc66ebb5b0390571bc65a858e4e6303 has reduced the newly inserted V2 default to 16, but ensureMultiAgentV2ThreadLimit() returns unchanged whenever the key already exists. Therefore an existing plugin-managed value of 1000 survives the upgrade path.
For comparison, current upstream Codex source at 50a7328f50faab7d3a4be125580dc1bf7ae070d7 defines DEFAULT_MULTI_AGENT_V2_MAX_CONCURRENT_THREADS_PER_SESSION = 4 in codex-rs/core/src/config/mod.rs. Upstream also intentionally ignores agent_max_depth on the V2 spawn path, so the V2 concurrency cap is the relevant safety boundary.
Assessment
The exact peak RSS was not recorded, so this does not prove that every byte was caused by subagents. However, the combination is strongly evidenced:
- a plugin-managed V2 cap 250× the upstream default
- repeated Sol-based review rounds
- multiple full-history fork attempts
- two memory-related shutdowns in the same planning workflow
This is not only an upstream lifecycle problem: LazyCodex controls the unsafe cap and the unbounded review-resubmission policy that amplified the workload.
Suggested follow-up
- Migrate the exact legacy managed value
1000to a conservative cap instead of preserving it forever. - Track whether the value was plugin-managed versus explicitly user-owned.
- Prefer the upstream default (
4) or require explicit opt-in before increasing it;16is still 4× upstream. - Add a hard maximum review-round count and a circuit breaker after app restart, capacity failure, or user-reported resource exhaustion.
- Do not permit full-history forks in the review retry path.
- Add regression coverage for upgrading from a config containing the old managed
1000value.
This issue or PR was generated by LazyCodex. Tag: lazycodex-generated
[sisyphus-bot] Thanks for the report! 🙏
I'm closing this because the behaviour it describes is already fixed: the guard was rewritten: it only ever removes LazyCodex-written values now and never inserts or raises a cap, so a user-set max_concurrent_threads_per_session is left alone.
How I checked: git show origin/main:plugins/omo/scripts/migrate-codex-config/subagent-limit-guard.mjs line 14: "Never insert or raise either cap. Remove LazyCodex-written values and…"; CODEX_SUBAGENT_THREAD_LIMIT has zero matches on origin/main.
If you can still reproduce this, please leave a comment — I'm happy to reopen right away. Thanks again for taking the time to file it! 🙇