guoyangzhen

Results issues of guoyangzhen

## Problem The retry logic in `chat_agent.py` only catches `openai.RateLimitError`. When using Anthropic models, `anthropic.RateLimitError` (a different class) is not caught, causing rate limit errors to propagate as unrecoverable exceptions...

## Problem When Portkey normalizes Anthropic model responses to OpenAI schema, `prompt_tokens` has inconsistent semantics depending on which provider is used: | Provider | `prompt_tokens` includes cache tokens? | |----------|----------------------------------------|...

## Problem When using OpenAI Agents SDK with file search or web search tools, on_span_end raises: ``` AttributeError: NoneType object has no attribute __dict__ ``` The root cause: hasattr() returns...

Fixes #216 | Fixes nuxt/content#3682 ## Problem `normalizeParams` uses `sql.replace(/\?/g, ...)` that replaces ALL question marks — including literal ones inside quoted strings, comments, and identifiers. This causes data corruption...

Resolves #237 ## Problem `-n=John` with short alias `n` for `name` returns `{ n: "=John", name: "=John" }` instead of `{ n: "John", name: "John" }`. Root cause: `node:util parseArgs`...

### 🔗 Linked issue Closes #40 ### 📝 Description TAR format stores uid and gid as octal-encoded ASCII strings, but `parse.ts` reads them using `Number.parseInt()` **without the radix parameter**. This...

Fixes #40 ## Problem The POSIX tar specification stores `uid` and `gid` fields as octal ASCII strings. The code was using `Number.parseInt()` which defaults to base 10, causing values like...

## Problem Two issues (#392): 1. **Deprecated default model**: `claude-3-5-sonnet-20240620` was deprecated on Oct 28, 2025 2. **temperature + topP conflict**: Default config passes both `temperature` and `topP`, but newer...

## Problem When `max_recursions` is exhausted during the tool execution loop, the agent returns a `ConversationMessage` with either: - `content=None` (Python AnthropicAgent) - `content` containing tool_use blocks instead of text...

## Problem Only USER input and final ASSISTANT response were saved to chat storage. Tool_result messages created during tool processing were kept in-memory only, so subsequent requests loaded incomplete conversation...