orynacode-ai 1.16.13 → 1.16.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "1.16.13",
3
+ "version": "1.16.15",
4
4
  "name": "orynacode-ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -165,7 +165,7 @@ export type ParsedAPICallError =
165
165
  export function parseAPICallError(input: { providerID: ProviderV2.ID; error: APICallError }): ParsedAPICallError {
166
166
  const m = message(input.providerID, input.error)
167
167
  const body = json(input.error.responseBody)
168
- if (isContextOverflow(m) || input.error.statusCode === 413 || body?.error?.code === "context_length_exceeded") {
168
+ if (isContextOverflow(m) || body?.error?.code === "context_length_exceeded") {
169
169
  return {
170
170
  type: "context_overflow",
171
171
  message: m,
@@ -930,6 +930,7 @@ export const layer = Layer.effect(
930
930
  return
931
931
  }
932
932
  ctx.needsCompaction = true
933
+ ctx.assistantMessage.error = error
933
934
  yield* events.publish(Session.Event.Error, { sessionID: ctx.sessionID, error })
934
935
  return
935
936
  }