Skip to content

[FEATURE]: Session logging as OpenAI messages #7535

Closed as not planned
Closed as not planned

Description

@titu1994

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

It is benefitial for users to have the ability to preserve individual request-response pairs of a session into json files with timestamp, so that SFT training traces can be later generated with correct sequence of operations and system message + tool call schema which will benefit open source model training.

Overall, the PR attached below will support logging of the messages as individually grouped by session id and timestamp, and provide a utility script to merge these messages into a single final trace that can then be used freely with HF and other libraries to SFT the model.

It also adds an environment flag to disable node module installation if a .opencode dir is found.
I am using opencode to generate data at a large scale, and for storage isolation, each directory has opencode run with a .opencode directory with different args and permissions etc.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 9, 2026
  2. github-actions commented on Jan 9, 2026

    @github-actions
    Contributor

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

    These issues also deal with exporting session data in various formats. Feel free to ignore if your feature request is more specific than these existing discussions.

  3. DefinitlyEvil commented on Feb 27, 2026

    @DefinitlyEvil

    This would be helpful.

  4. github-actions commented on Apr 29, 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

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions