Skip to content

Restore Telegram /steer for active Codex runs - #98126

Merged
obviyus merged 2 commits into
openclaw:mainfrom
100yenadmin:codex/telegram-steer-81594
Jul 1, 2026
Merged

obviyus merged 2 commits into
openclaw:mainfrom
100yenadmin:codex/telegram-steer-81594

Conversation

@100yenadmin

@100yenadmin 100yenadmin commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Route Telegram /steer, /tell, and /queue text commands through the Telegram control lane so active-run management does not wait behind the busy chat/topic lane.
  • Teach /steer active-run lookup to recover from slash-lane targeting by checking the active session key, session file, sibling direct/DM lanes, and then the legacy stored session id fallback.
  • Register Codex app-server active runs with their sessionFile, matching the generic embedded runner so channel command lookup can find active Codex turns and deliver through existing turn/steer.
  • Fix shared messages.queue.mode: "steer" admission for active non-streaming runs by using active/not-stopped handles instead of stream-only checks.

Fixes #81594.
Refs #48003.
Refs #82479.
Supersedes #81592 and #81613.

What Problem This Solves

Users sending /steer or /tell from Telegram during an active Codex run can currently see the command arrive too late or get treated as a separate prompt. That makes channel-native steering unreliable exactly when a user is trying to correct a long-running Codex turn without terminal access.

There is also a related steer-mode failure: when messages.queue.mode is set to steer, active runs that are no longer streaming but are still accepting input could be rejected as not_streaming, causing the message to fall through to queued follow-up behavior instead of steering the active run.

Root Cause

Telegram /steer text commands had two independent ways to miss an active Codex turn:

  1. Telegram sequentialization did not classify /steer, /tell, or /queue as control-lane commands, so they could wait behind the same long-running chat/topic lane they were meant to control.
  2. /steer active-run resolution stopped after the selected session key and stored session id. If the selected key was a slash lane, or if the active Codex run was only recoverable from the transcript session file, the command fell through as a new prompt instead of steering the active turn.

Codex app-server already supports steering with turn/steer; the missing piece was registering the active run with the same sessionFile lookup used by the generic embedded runner.

For steer mode, the shared runtime admission gate used isStreaming() as a proxy for whether a run could accept steering. That was too narrow. Active non-streaming prompt phases can still accept queued steering, so the queue handles now expose optional isStopped() state. Legacy handles keep the old stream-only behavior; updated embedded/Codex/reply handles accept steering while active and not stopped, and fail closed if stopped-state checks throw.

Flow

Telegram /steer or /tell
  -> Telegram control sequential lane
  -> shared /steer command handler
  -> active run lookup:
       target key
       target session file
       slash sibling direct/DM keys
       sibling session files
       stored active session id
  -> Codex steering queue
  -> app-server turn/steer
messages.queue.mode = steer
  -> active reply handling
  -> queue admission checks active/not-stopped
  -> active embedded/Codex/reply queue handle
  -> turn/steer instead of delayed follow-up

Scope

This restores the Telegram command path for active Codex runs and fixes shared runtime steer-mode admission for active non-streaming runs once a message reaches reply handling.

This intentionally does not claim to fix every #48003 case. Ordinary Telegram text messages are still serialized by botRuntime.sequentialize(getTelegramSequentialKey) before OpenClaw resolves the final SessionKey, thread binding, and queue mode. A safe ordinary-message steer-mode bypass needs a post-context, active-session-aware ingress design so we do not route first turns or cross-topic messages to the wrong active run.

Evidence

  • RED checks first:
    • Telegram control-lane tests failed for /steer, /tell, /queue, and targeted command forms.
    • /steer resolver tests failed for session-file lookup and slash-lane direct sibling fallback.
    • Codex app-server steering test failed because active runs were not resolvable by session file.
    • Steer-mode admission tests failed because active non-streaming runs were rejected as not streaming and fell through toward follow-up behavior.
  • GREEN command-path suite:
    • OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run extensions/telegram/src/sequential-key.test.ts src/auto-reply/reply/commands-steer.test.ts extensions/codex/src/app-server/run-attempt.steering.test.ts --reporter=verbose
    • Result: 3 test files passed, 63 tests passed.
  • GREEN steer-mode suite:
    • OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run src/auto-reply/reply/agent-runner.media-paths.test.ts src/agents/embedded-agent-runner/runs.test.ts src/auto-reply/reply/reply-run-registry.test.ts --reporter=verbose
    • Result: auto-reply shard 2 files / 29 tests passed; agents shard 1 file / 29 tests passed.
  • Static checks:
    • git diff --check
    • ./node_modules/.bin/oxlint on touched files.
    • ./node_modules/.bin/oxfmt --check --threads=1 on touched files.
    • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core-test.tsbuildinfo
  • Broader type note:
    • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.extensions.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions-test.tsbuildinfo currently fails on unrelated extensions/qa-lab crabline type errors. The new Codex steering test type error found during development was fixed and did not recur.
  • GitNexus:
    • detect_changes reports medium risk, with affected processes limited to Telegram dispatch/sequential-key flow and shared active-run steering admission.

Proof Request

After CI starts, please run Telegram visible proof for this PR:

@openclaw-mantis telegram live proof: verify /steer and /tell bypass a busy Telegram Codex run and reach the active Codex turn via turn/steer instead of becoming a delayed follow-up.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@100yenadmin

Copy link
Copy Markdown
Contributor Author

@openclaw-mantis telegram live proof: verify /steer and /tell bypass a busy Telegram Codex run and reach the active Codex turn via turn/steer instead of becoming a delayed follow-up.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram extensions: codex size: M triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 30, 2026
@clawsweeper

clawsweeper Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 1, 2026, 1:16 PM ET / 17:16 UTC.

Summary
The PR routes Telegram /steer, /tell, and /queue through the control lane, expands active-run lookup, registers Codex app-server runs by session file, and relaxes active non-streaming steer admission.

PR surface: Source +107, Tests +320. Total +427 across 15 files.

Reproducibility: yes. source-level: current main lacks the Telegram control-lane aliases, sibling/session-file active-run lookup, Codex session-file registration, and active non-streaming admission needed for the reported command-steering path; no live Telegram repro was run in this read-only review.

Review metrics: 1 noteworthy metric.

  • Active-run routing surfaces: 4 changed. Telegram sequencing, steer resolution, Codex active-run registration, and active/non-streaming admission must agree for the visible command path to work.

Stored data model
Persistent data-model change detected: persistent cache schema: extensions/telegram/src/sequential-key.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🧂 unranked krab
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Attach redacted live Telegram proof against current head showing /steer or /tell reaches the active Codex turn during a busy run.
  • After proof is added, request a fresh review so the durable ClawSweeper verdict reflects the current artifact.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: Current-head proof is insufficient: the only Mantis Telegram artifact tested older 6ab53f3c6778a2e54bf743b8425acc68fb52d835, failed, and does not prove current head 6912ef43f0f405dc60fe5ed3d5773e3d1b53f544. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Mantis proof suggestion
A live Telegram transcript would directly prove whether command messages bypass the busy chat lane and reach Codex turn/steer. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis telegram live proof: verify /steer and /tell bypass a busy Telegram Codex run and reach the active Codex turn via turn/steer instead of becoming a delayed follow-up on current head 6912ef43f0f405dc60fe5ed3d5773e3d1b53f544.

Risk before merge

  • [P1] No current-head live Telegram artifact proves /steer or /tell bypasses a busy Telegram Codex run and reaches turn/steer on 6912ef43f0f405dc60fe5ed3d5773e3d1b53f544.
  • [P1] The sibling/session-file lookup changes which active run receives steering text; a stale session-file match or wrong sibling lane would be a visible message-delivery and session-state regression.
  • [P1] The broader ordinary-message messages.queue.mode: steer ingress gap remains tracked by Steer mode does not inject messages mid-turn for main sessions #48003 and should not be treated as closed by this PR.

Maintainer options:

  1. Capture Current-Head Telegram Proof (recommended)
    Before merge, attach redacted live Telegram proof showing /steer or /tell reaches the active Codex turn via turn/steer while the normal chat lane is busy on head 6912ef43f0f405dc60fe5ed3d5773e3d1b53f544.
  2. Accept Source-Only Routing Risk
    Maintainers could intentionally merge the source and focused tests without live proof if they explicitly own the Telegram routing and session-state risk.
  3. Pause Until Proof Lane Works
    If current-head Telegram proof cannot be captured, leave this PR open rather than merging unproven visible transport behavior.

Next step before merge

  • [P1] The remaining action is maintainer-triggered current-head Telegram proof and routing-risk review, not a narrow automated code repair.

Security
Cleared: The diff changes TypeScript runtime/tests only and does not add dependency, workflow, lockfile, secret, permission, package-resolution, or download/execute surfaces.

Review details

Best possible solution:

Land only after redacted current-head Telegram proof shows /steer or /tell reaches the active Codex turn through turn/steer while the normal chat lane is busy, while leaving ordinary text ingress under #48003.

Do we have a high-confidence way to reproduce the issue?

Yes, source-level: current main lacks the Telegram control-lane aliases, sibling/session-file active-run lookup, Codex session-file registration, and active non-streaming admission needed for the reported command-steering path; no live Telegram repro was run in this read-only review.

Is this the best way to solve the issue?

Mostly yes: the PR touches the implicated Telegram lane, steer resolver, Codex registration, and steer-mode admission points without expanding the public plugin SDK, but it is not merge-ready until current-head Telegram proof verifies the visible behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4895a00b94f0.

Label changes

Label justifications:

  • P1: The PR targets a broken Telegram/Codex active-run management workflow where steering commands can arrive late or miss the active run.
  • merge-risk: 🚨 message-delivery: The diff changes Telegram command lanes and steering delivery, which could delay, suppress, or misroute visible steering messages if the lane contract is wrong.
  • merge-risk: 🚨 session-state: The diff changes active-run lookup across sibling session keys and session files, affecting which session receives steering text.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Current-head proof is insufficient: the only Mantis Telegram artifact tested older 6ab53f3c6778a2e54bf743b8425acc68fb52d835, failed, and does not prove current head 6912ef43f0f405dc60fe5ed3d5773e3d1b53f544. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • mantis: telegram-visible-proof: Mantis should capture Telegram visible proof. The PR changes visible Telegram /steer and /tell behavior that a short live Telegram Desktop proof can demonstrate.
Evidence reviewed

PR surface:

Source +107, Tests +320. Total +427 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 9 121 14 +107
Tests 6 324 4 +320
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 445 18 +427

Acceptance criteria:

  • [P1] Capture redacted live Telegram proof for current head 6912ef43f0f405dc60fe5ed3d5773e3d1b53f544.
  • [P1] Confirm /steer or /tell reaches Codex turn/steer during a busy Telegram Codex run instead of becoming a delayed follow-up.
  • [P1] Refresh ClawSweeper review after proof is attached.

What I checked:

Likely related people:

  • vincentkoc: Local blame for the current-main central steer files maps to Vincent Koc, and open PR fix: allow steer messages during active non-streaming runs #73365 targets the same active non-streaming steering admission area. (role: recent area contributor; confidence: medium; commits: 90c46f48b63a, b29ea4e33486; files: extensions/telegram/src/sequential-key.ts, src/auto-reply/reply/commands-steer.ts, src/agents/embedded-agent-runner/runs.ts)
  • fuller-stack-dev: Merged PR feat: steer mid-turn prompts by default #77023 defined the surrounding /queue steer and explicit /steer behavior across the same auto-reply and Codex surfaces. (role: merged queue-steering feature author; confidence: high; commits: 70df2b8fe28d, fd9bf0db9719, e66c9620c239; files: src/auto-reply/reply/commands-steer.ts, src/auto-reply/reply/agent-runner.ts, extensions/codex/src/app-server/run-attempt.ts)
  • steipete: Follow-up commits in merged PR feat: steer mid-turn prompts by default #77023 preserved steering acceptance/fallback behavior and clarified queue-mode behavior in adjacent files and docs. (role: recent queue-steering contributor; confidence: medium; commits: 5fa1e83673f4, 45c5fac85e0c, b8d0cf8db701; files: src/auto-reply/reply/commands-steer.ts, src/auto-reply/reply/agent-runner.ts, docs/concepts/queue-steering.md)
  • Kyzcreig: Reported the slash-lane /steer active-run lookup bug and authored open PR [codex] Route Telegram management commands to the control lane #81592 for the Telegram management-command control-lane subset. (role: source reporter and adjacent contributor; confidence: medium; commits: 0cde4f7edb09; files: extensions/telegram/src/sequential-key.ts, extensions/telegram/src/sequential-key.test.ts)
  • darinkishore: Open PR fix(reply): let active turns reach queue policy #89238 targets the same broader active-turn steering cluster by letting same-session visible turns reach queue policy before lifecycle admission decides whether to steer. (role: adjacent admission-layer contributor; confidence: medium; commits: 067f73db1a93; files: src/auto-reply/reply/dispatch-from-config.ts, src/auto-reply/reply/dispatch-from-config.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jun 30, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Jun 30, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jun 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts and removed scripts Repository scripts labels Jun 30, 2026
@100yenadmin

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head is f5a9579029d12a5fdd59b0e7ecbc5743296f94d2. The SDK-surface concern from the durable review is stale: follow-up f5a9579029 removes the public resolveActiveEmbeddedRunSessionIdBySessionFile export and restores the plugin SDK surface budgets. The Codex app-server test now observes the existing public active-run registration calls while still invoking the real runtime.

Current-head CI is clean: gh pr checks reports 97 ok / 0 attention. Local focused proof also passed: node --import tsx scripts/check-no-extension-test-core-imports.ts, node scripts/plugin-sdk-surface-report.mjs --check, focused steering Vitest, plugin SDK surface-report Vitest, git diff --check, focused oxlint, and focused oxfmt --check --threads=1.

Remaining proof boundary: live Telegram proof is still needed before merge. The maintainer-authorized Mantis Telegram run I can see is 28441543238, but it is still waiting on the Telegram account lease and is tied to older head 6ab53f3c6778a2e54bf743b8425acc68fb52d835; current head will need a fresh or updated live proof artifact once the proof lane is available.

@clawsweeper

clawsweeper Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jun 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Jun 30, 2026
@100yenadmin

Copy link
Copy Markdown
Contributor Author

Follow-up for the steer-mode vs follow-up queue gap flagged after the initial PR:

  • Added commit 8989f8461f (fix active non-streaming steer mode).
  • Runtime admission now accepts steer-mode delivery into active non-streaming embedded/Codex/reply handles when the handle reports it is not stopped.
  • Legacy handles without isStopped() keep the existing isStreaming() behavior.
  • Stopped-state checks fail closed.

Focused validation on the new head:

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run src/auto-reply/reply/agent-runner.media-paths.test.ts src/agents/embedded-agent-runner/runs.test.ts src/auto-reply/reply/reply-run-registry.test.ts --reporter=verbose
# passed: auto-reply 2 files / 29 tests; agents 1 file / 29 tests

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run extensions/telegram/src/sequential-key.test.ts src/auto-reply/reply/commands-steer.test.ts extensions/codex/src/app-server/run-attempt.steering.test.ts --reporter=verbose
# passed: 3 files / 63 tests

./node_modules/.bin/oxfmt --check --threads=1 <touched files>
./node_modules/.bin/oxlint <touched files>
git diff --check
# passed

Boundary kept explicit: this still does not implement a blind bypass for ordinary Telegram text messages before OpenClaw resolves the final session/thread/queue-mode context. The PR now fixes explicit /steer//tell command steering plus shared runtime steer-mode admission once a message reaches reply handling. The remaining ordinary-message Telegram ingress bypass should be handled under #48003 with a post-context, active-session-aware design.

@100yenadmin

Copy link
Copy Markdown
Contributor Author

@openclaw-mantis telegram live proof: verify /steer and /tell bypass a busy Telegram Codex run and reach the active Codex turn via turn/steer instead of becoming a delayed follow-up on current head 8989f8461f2e516c6749e2acc7efe53877201a3a.

@100yenadmin

Copy link
Copy Markdown
Contributor Author

@openclaw-mantis telegram live proof: verify /steer and /tell bypass a busy Telegram Codex run and reach the active Codex turn via turn/steer instead of becoming a delayed follow-up.

@100yenadmin

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head is 8989f8461f2e516c6749e2acc7efe53877201a3a. Follow-up commit 8989f8461f fixes the messages.queue.mode: "steer" runtime admission gap for active non-streaming embedded/Codex/reply handles by adding optional not-stopped admission while preserving legacy isStreaming() behavior for older handles.

Current local proof for the new head:

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run src/auto-reply/reply/agent-runner.media-paths.test.ts src/agents/embedded-agent-runner/runs.test.ts src/auto-reply/reply/reply-run-registry.test.ts --reporter=verbose
# passed: auto-reply 2 files / 29 tests; agents 1 file / 29 tests

OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run extensions/telegram/src/sequential-key.test.ts src/auto-reply/reply/commands-steer.test.ts extensions/codex/src/app-server/run-attempt.steering.test.ts --reporter=verbose
# passed: 3 files / 63 tests

./node_modules/.bin/oxfmt --check --threads=1 <touched files>
./node_modules/.bin/oxlint <touched files>
git diff --check
# passed

Current remote CI is still running but has no failing jobs at this point. The remaining proof blocker is live Telegram proof: Mantis workflow requests from 100yenadmin authorize the workflow shell but stop before proof because GitHub reports the actor permission as read, while Mantis requires write/maintain/admin. A maintainer with write access still needs to trigger or attach current-head Telegram proof.

@clawsweeper

clawsweeper Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot removed the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Jun 30, 2026
@clawsweeper clawsweeper Bot added status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. labels Jun 30, 2026
@openclaw-mantis

Copy link
Copy Markdown
Contributor

Mantis Telegram Desktop Proof

Summary: Mantis captured native Telegram Desktop before/after GIFs for /steer during an active Telegram run; this PR did not show the expected steer acknowledgement.

Main screenshot This PR screenshot
Baseline native Telegram Desktop screenshot Candidate native Telegram Desktop screenshot
Main This PR
Baseline native Telegram Desktop proof GIF Candidate native Telegram Desktop proof GIF

Motion-trimmed clips:

Raw QA files: https://artifacts.openclaw.ai/mantis/telegram-desktop/pr-98126/run-28441543238-1/index.json

@100yenadmin

Copy link
Copy Markdown
Contributor Author

Maintainer proof request for current head.

The Mantis result at https://github.com/openclaw/openclaw/actions/runs/28441543238 is useful stale evidence, but it is not merge-clearing proof for the current PR head:

  • Mantis candidate tested: 6ab53f3c6778a2e54bf743b8425acc68fb52d835
  • Current PR head: 8989f8461f2e516c6749e2acc7efe53877201a3a
  • The later steer-mode admission fix landed after the tested candidate.

Current PR state I rechecked:

  • GitHub checks: 65 passing, 33 skipped, 0 failing, 0 pending at 8989f8461f2e516c6749e2acc7efe53877201a3a
  • Merge state: CLEAN
  • Review threads: none
  • Submitted reviews / inline review comments: none
  • ClawSweeper current-head review still blocks only on missing live Telegram proof.

I cannot trigger this proof from 100yenadmin: Mantis workflow requests from this actor are skipped because GitHub reports only read permission for openclaw/openclaw, while the live Telegram proof lane requires write/maintain/admin.

Could a maintainer with write access please post exactly:

@openclaw-mantis telegram live proof: verify /steer and /tell bypass a busy Telegram Codex run and reach the active Codex turn via turn/steer instead of becoming a delayed follow-up on current head 8989f8461f2e516c6749e2acc7efe53877201a3a.

Once current-head proof is attached, I will update the PR evidence and request @clawsweeper re-review if it does not refresh automatically.

@100yenadmin

Copy link
Copy Markdown
Contributor Author

Small clarification on the ClawSweeper stored-data note:

The durable review currently says Persistent data-model change detected: persistent cache schema: extensions/telegram/src/sequential-key.test.ts. That appears to be a false positive. This PR does not change persistent schema, migration, cache storage, or upgrade-compatibility code; the referenced path is a test file for Telegram sequential-key routing.

Current changed-file list is limited to Telegram sequential-key routing/tests, Codex app-server active-run registration/tests, embedded/reply active-run state, and steer command/runtime tests:

extensions/codex/src/app-server/run-attempt.steering.test.ts
extensions/codex/src/app-server/run-attempt.ts
extensions/telegram/src/sequential-key.test.ts
extensions/telegram/src/sequential-key.ts
src/agents/embedded-agent-runner/run-state.ts
src/agents/embedded-agent-runner/run/attempt.ts
src/agents/embedded-agent-runner/runs.test.ts
src/agents/embedded-agent-runner/runs.ts
src/auto-reply/reply/agent-runner.media-paths.test.ts
src/auto-reply/reply/agent-runner.ts
src/auto-reply/reply/commands-steer.runtime.ts
src/auto-reply/reply/commands-steer.test.ts
src/auto-reply/reply/commands-steer.ts
src/auto-reply/reply/reply-run-registry.test.ts
src/auto-reply/reply/reply-run-registry.ts

The boundary checks that would catch package/API/schema-style drift are green on the current head. I’m treating current-head live Telegram proof as the remaining merge blocker, not a persistence migration requirement.

@jalehman jalehman self-assigned this Jun 30, 2026
@obviyus
obviyus force-pushed the codex/telegram-steer-81594 branch from 8989f84 to 896693e Compare July 1, 2026 16:36
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 1, 2026
@obviyus
obviyus force-pushed the codex/telegram-steer-81594 branch from 896693e to 6912ef4 Compare July 1, 2026 17:05
@obviyus
obviyus merged commit 8d9a7ab into openclaw:main Jul 1, 2026
94 of 95 checks passed
@obviyus

obviyus commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Landed via rebase onto main.

  • Scoped tests: - git diff --check origin/main...HEAD - OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run extensions/telegram/src/sequential-key.test.ts src/auto-reply/reply/commands-steer.test.ts extensions/codex/src/app-server/run-attempt.steering.test.ts --reporter=verbose (63 tests) - OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run src/auto-reply/reply/agent-runner.media-paths.test.ts src/agents/embedded-agent-runner/runs.test.ts src/auto-reply/reply/reply-run-registry.test.ts --reporter=verbose (58 tests)
  • Live proof: local authenticated Codex app-server run accepted /steer while active and final history contained the steer token.
  • Autoreview: clean, no accepted/actionable findings.
  • Changelog: not updated; release notes are PR/commit scoped for this bug fix.
  • Land commit: 6912ef4
  • Merge commit: 8d9a7ab

Thanks @100yenadmin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: telegram Channel integration: telegram extensions: codex mantis: telegram-visible-proof Mantis should capture Telegram visible proof. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Text /steer can target slash lane instead of active direct lane

3 participants