Shadow-call intercept: option to follow the conversation's model
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start from the shadow-call intercept code path and the ocx models shadow set CLI handler that currently accepts a fixed target; trace how an intercepted helper call selects its model and where intercept_target_unavailable is raised (#5618). Add an opt-in follow-conversation setting there while preserving fixed-target priority, then cover both cases with tests around shadow routing. Done means a helper call from an anthropic/claude-sonnet-5-5 thread is answered by that model when enabled, while a set fixed target and its failover behave as before.
Written by the indexing model from the issue text.
Description
Area
Proxy and routing
What are you trying to accomplish?
I use Claude models in Codex App. The app sends its title and activity-summary helper calls to a hardcoded gpt-6-luna. When my OpenAI quota is used up, these calls fail and the thread keeps the first user message as its title. I want these helper calls to use the model of the conversation they belong to.
What prevents this today?
The shadow-call intercept can reroute these calls, but it needs one fixed target model, and it is off with an empty target by default. A fixed target also means that GPT chats get their titles from that same model. If the target becomes unavailable, the call fails with 409 intercept_target_unavailable, by design (#5618).
What should OpenCodex do?
With an opt-in setting, an intercepted helper call is routed to the model that the conversation uses. A fixed target (or a combo with its own failover) keeps priority when it is set. Behaviour for unavailable fixed targets stays unchanged.
Example usage or interface
ocx models shadow set --follow-conversation on
The flag name is only an illustration. Result: a helper call from a thread using anthropic/claude-sonnet-5-5 is answered by that model instead of gpt-6-luna.
Alternatives or workarounds
ocx models shadow set anthropic/claude-haiku-5-5 --enabled on works but uses one model for all conversations.
Additional context
In my local ocx logs there are 49 responses with 429 and 16 with 502 or 504, and about half of my recent Claude threads show the raw first message as title. Related: #2157, #5618, #4129.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.3k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 814
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lidge-jun/opencodex
-
bug gui platform
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
lidge-jun/opencodex#9172 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[Feature]: Include provider, model and account label in the `upstream failure` service.log linePossibly taken @EnesKartal claimed this 4 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lidge-jun/opencodex#9057 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersPossibly taken @sedoll claimed this 6 days ago. Opencatalog provider provider-compatibility
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
lidge-jun/opencodex#9037 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug cli
Difficulty 4/5 3-5 days Newbie friendliness 52/100
lidge-jun/opencodex#9171 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
account-pool enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in lidge-jun/opencodex
Similar issues
-
manually bump balena-preload to ^19.0.6Possibly taken @shaunmulligan claimed this today. Open
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
balena-io/balena-cli#3200 ·
Maintainers usually reply within 1 day
-
`MaterializedChatMessage._text` is quadratic in the number of text chunks (`+=` followed by `endsWith`), driving the extension host to heap OOMPossibly taken @olegius88 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
microsoft/vscode-prompt-tsx#205 ·
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
melgarafael/DeskcommCRM#5340 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
ehmpathy/rhachet-roles-ehmpathy#1529 ·
Maintainers usually reply within 1 day