Skip to content

Phase 2: Polish — remediation hints, active-session history awareness#2

Merged
jmcte merged 1 commit intomainfrom
phase-2/platform-polish
Mar 27, 2026
Merged

Phase 2: Polish — remediation hints, active-session history awareness#2
jmcte merged 1 commit intomainfrom
phase-2/platform-polish

Conversation

@jmcte
Copy link
Copy Markdown
Owner

@jmcte jmcte commented Mar 27, 2026

Summary

Test plan

  • New tests for remediationHint() covering all known error codes and detail codes
  • Test that normalizeOutputError includes hint in output for AuthPolicyError
  • npm run typecheck passes
  • npm run build passes
  • Full test suite: all previously-passing tests still pass

🤖 Generated with claude-flow

…history

Addresses openclaw#157 and openclaw#176:

- sessions history now probes the queue owner when no messages are found.
  If the session is actively being served, it shows a hint instead of the
  bare "No history" message. JSON output includes an `active` flag.

- All normalized errors now include a `hint` field with actionable
  remediation guidance based on error code, detail code, and ACP payload.
  Hints are shown in text mode on stderr and included in JSON-RPC error
  data for machine consumers.

Co-Authored-By: claude-flow <ruv@ruv.net>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c3f335c01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 49 to 53
detailCode: params.detailCode,
origin: params.origin,
retryable: params.retryable,
hint: params.hint,
timestamp: params.timestamp,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include hint when forwarding ACP error payloads

In JSON mode, hints are only injected into the fallback ACPX metadata path, but buildErrorObject() returns the raw ACP error whenever acp is present, so data.hint is dropped for the most common adapter-originated failures (including the ACP-code-based hints added in this change). That means machine consumers still cannot read remediation hints for ACP-backed errors.

Useful? React with 👍 / 👎.

@jmcte jmcte merged commit f264cbe into main Mar 27, 2026
@jmcte jmcte deleted the phase-2/platform-polish branch March 27, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant