Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: githubnext/ace
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: githubnext/ace
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: attachment-context
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 9 files changed
  • 1 contributor

Commits on Oct 16, 2026

  1. fix(channel): refuse attachments that can't fit the chat's model, and…

    … explain context overflows
    
    A message whose attached files exceed the model's context failed its run and every later one,
    since the transcript keeps it. ask and say now estimate attached files' tokens from their UTF-8
    bytes and refuse a message over three quarters of the model's context window, naming the files
    and the limit. A run that still overflows, such as one over a message stored by 0.0.48, ends with
    an error that says to delete the message with the large attachment or pick a larger model.
    
    Why: packages/channel/src/room.ts#function checkContext | estimate from UTF-8 bytes, not chars; pi-ai's chars/4 undercounts non-Latin text by ~2x, which is how multilingual PDFs overflowed
    Why: packages/channel/src/channel.ts#function failed | overflow errors are explained in the projection, not stored, so replies already stored by older channels get the recovery hint too
    iamnbutler committed Oct 16, 2026
    Configuration menu
    Copy the full SHA
    dfb031c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    427a678 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1152e8f View commit details
    Browse the repository at this point in the history
Loading