mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 18:04:32 +00:00
CLI: fix Cloud Code Assist 400 API errors and missing session exports
- Add sanitizeToolCallId() to fix Cloud Code Assist tool call ID validation - Apply sanitization in sanitizeSessionMessagesImages() for toolResult and assistant messages - Add legacy CONFIG_PATH_CLAWDIS and STATE_DIR_CLAWDIS exports for backward compatibility - Resolves Cloud Code Assist rejection of invalid tool call IDs with pipe characters - Fixes missing session export functions that were blocking system startup Addresses Cloud Code Assist API 400 errors from invalid tool call IDs like 'call_abc123|item_456'
This commit is contained in:
committed by
Peter Steinberger
parent
0cb28e26fc
commit
74485f171b
@@ -44,6 +44,9 @@ function resolveUserPath(input: string): string {
|
||||
|
||||
export const STATE_DIR_CLAWDBOT = resolveStateDir();
|
||||
|
||||
// Legacy exports for backward compatibility during Clawdis → Clawdbot rebrand
|
||||
export const STATE_DIR_CLAWDIS = STATE_DIR_CLAWDBOT;
|
||||
|
||||
/**
|
||||
* Config file path (JSON5).
|
||||
* Can be overridden via CLAWDBOT_CONFIG_PATH environment variable.
|
||||
@@ -60,6 +63,9 @@ export function resolveConfigPath(
|
||||
|
||||
export const CONFIG_PATH_CLAWDBOT = resolveConfigPath();
|
||||
|
||||
// Legacy exports for backward compatibility during Clawdis → Clawdbot rebrand
|
||||
export const CONFIG_PATH_CLAWDIS = CONFIG_PATH_CLAWDBOT;
|
||||
|
||||
export const DEFAULT_GATEWAY_PORT = 18789;
|
||||
|
||||
const OAUTH_FILENAME = "oauth.json";
|
||||
|
||||
Reference in New Issue
Block a user