-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Native Codex harness succeeds in explicit sessions but Feishu direct-session replies are not delivered #78689
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Summary
Native Codex app-server harness works in isolated CLI/explicit agent sessions, but when the same route is used for a Feishu direct-session agent, final replies were not delivered to the user. Rolling the agent back to the PI/OpenAI-Codex route restored Feishu direct-message replies and
/status.This may be a Feishu delivery integration issue specific to native Codex harness delivery defaults / session origin, rather than a Codex model/auth failure.
Environment
2026.5.6(c97b9f7)v25.6.1accounts 7/7 OK)What worked
A temporary isolated test agent using native Codex succeeded:
{ "id": "codex-test", "model": "codex/gpt-5.5", "agentRuntime": { "id": "codex" } }Smoke result:
{ "status": "ok", "provider": "codex", "model": "gpt-5.5", "agentHarnessId": "codex", "runner": "embedded", "winnerProvider": "codex" }A direct CLI/explicit smoke for the real agent after switching to native Codex also succeeded:
{ "status": "ok", "provider": "codex", "model": "gpt-5.5", "agentHarnessId": "codex", "runner": "embedded", "winnerProvider": "codex" }What failed
The real Feishu direct-session agent was switched from the stable PI route:
{ "model": "openai-codex/gpt-5.5", "agentRuntime": { "id": "pi" } }to native Codex:
{ "model": "codex/gpt-5.5", "agentRuntime": { "id": "codex" } }The Feishu direct-session metadata was also pinned to the native route:
{ "modelProvider": "codex", "model": "gpt-5.5", "agentHarnessId": "codex", "agentRuntimeOverride": "codex", "authProfileOverride": "openai-codex:<email>", "authProfileOverrideSource": "user" }After that, Feishu direct messages and
/statusdid not show a reply to the user. Logs showed inbound recognition for/statusbut command result delivery failed:Manual send attempts through the Feishu account also returned HTTP 400 in this state:
Gateway status still reported Feishu as healthy:
Rollback restored Feishu usability
Rolling the agent and direct-session metadata back to the PI/OpenAI-Codex route restored user-visible Feishu replies and
/status:{ "model": "openai-codex/gpt-5.5", "agentRuntime": { "id": "pi" } }Session metadata after rollback:
{ "modelProvider": "openai-codex", "model": "gpt-5.5", "agentHarnessId": "pi", "agentRuntimeOverride": "pi", "authProfileOverride": "openai-codex:<email>" }PI smoke result:
{ "status": "ok", "provider": "openai-codex", "model": "gpt-5.5", "agentHarnessId": "pi", "runner": "embedded", "winnerProvider": "openai-codex", "text": "Neo PI route ok。" }The user confirmed the Feishu direct chat and
/statusworked again after rollback.Expected
If
codex/gpt-5.5+agentRuntime.id = "codex"succeeds in explicit/CLI sessions, the same agent runtime should either:Instead, the model run could succeed in isolated smoke tests, while Feishu direct-session user-visible replies disappeared and
/statuscommand dispatch returneddelivered=false.Notes
This may be related to the Codex harness delivery default:
It may interact differently with Feishu direct-session reply/card delivery compared with the PI route.
I am filing this separately from the
openai/gpt-* + agentRuntime=codexdocs/routing mismatch becausecodex/gpt-5.5itself does activate native Codex correctly in explicit sessions.