Skip to content

fix(sdk): correct Kotlin code context bulk delete#644

Open
Gujiassh wants to merge 1 commit intoalibaba:mainfrom
Gujiassh:fix/kotlin-delete-contexts
Open

fix(sdk): correct Kotlin code context bulk delete#644
Gujiassh wants to merge 1 commit intoalibaba:mainfrom
Gujiassh:fix/kotlin-delete-contexts

Conversation

@Gujiassh
Copy link
Copy Markdown
Contributor

@Gujiassh Gujiassh commented Apr 5, 2026

Summary

  • route Kotlin code-interpreter bulk context deletion through the generated API client instead of recursively calling the adapter method
  • preserve the existing adapter error handling while fixing the language-scoped delete path
  • add a regression test that asserts the Kotlin adapter sends DELETE /code/contexts?language=...

Testing

  • cd sdks/code-interpreter/kotlin && JAVA_HOME=/home/cc/tmp/jdk/jdk-17.0.18+8 PATH=/home/cc/tmp/jdk/jdk-17.0.18+8/bin:$PATH ./gradlew test --tests com.alibaba.opensandbox.codeinterpreter.infrastructure.adapters.service.CodesAdapterTest

Route Kotlin code-interpreter bulk context deletion through the generated API client instead of recursively calling the adapter method, and add a regression test for the language-scoped DELETE request.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@Gujiassh
Copy link
Copy Markdown
Contributor Author

Gujiassh commented Apr 6, 2026

Quick sync from my side: this branch is still clean locally and unchanged relative to its fork tracking branch (0/0).

Current state I rechecked today:

  • PR is still open
  • local branch is clean and up to date
  • CLA check is green
  • there are no active review threads to address from my side

If there's no additional maintainer concern here, this looks ready for review.

@Pangjiping Pangjiping added bug Something isn't working sdk/java labels Apr 7, 2026
Copy link
Copy Markdown
Collaborator

@Pangjiping Pangjiping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

bug Something isn't working sdk/java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants