Skip to content

Web mode crash when session diffs payload is non-array #19268

Closed as not planned
Closed as not planned

Description

@codeg-old

Bug

In web mode, session/review UI can crash with TypeError: e.diffs.map is not a function when payload fields like summary.diffs are not arrays.

Impact

  • session pages and review panes can hard-crash at render time
  • stale CDN chunks make emergency recovery difficult in self-hosted environments

Proposed fix

  • normalize all diff entrypoints with Array.isArray guards before rendering
  • add optional OPENCODE_APP_DIST local asset override in server fallback route so operators can serve patched bundles during CDN propagation windows

Repro

  1. Start web mode
  2. Open a session where summary.diffs is null/object/non-array
  3. Observe .map runtime crash in session/review components

Activity

  1. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. abrance commented on Mar 26, 2026

    @abrance

    same bug

  3. johnsonsleo commented on Mar 30, 2026

    @johnsonsleo

    same bug

  4. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
  5. adlternative commented on May 7, 2026

    @adlternative

    same too...

  6. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions