Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v0.2.118 ·

Code Organization Improvements

Entry
JSON All of v0.2.118
EntryKind: in v0.2.118,
ChangesSection of the release

New Attachment Processing Function

A new function uo2 has been introduced to handle all attachment types in a more modular way:

function uo2(attachment) {
  switch (attachment.type) {
    case "directory":
      // Returns directory listing tool calls
    case "file":
      // Handles both edited and new files
    case "selected_lines_in_ide":
      // Handles IDE selection events
    case "opened_file_in_ide":
      // Handles IDE file open events
    case "todo":
      // Handles todo list updates
    case "nested_memory":
      // Handles nested memory content
    case "queued_command":
      // Handles queued commands
    case "ultramemory":
      // Handles ultramemory content
  }
}

This refactoring improves code maintainability by:

  • Centralizing all attachment processing logic in one place
  • Making the main message processing function (Jw) cleaner and more focused
  • Returning arrays of messages, allowing for more flexible message composition

See this entry in the whole of v0.2.118 →

Feedback