Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

expose agent sessions and their compaction

Đang mở
#232 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript
Lĩnh vực
api

Hướng nghiên cứu

Read the linked WebMCP browser agent and app driven observations proposals, especially issue #229, to understand the session and observation model. Then determine how session start and compaction events would fit MCPContext and the lifecycle described here. Done means the proposal defines when both events fire and how apps can send observations around compaction.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

I think it could be interesting to expose browser agent sessions to applications, in particular for efficient compaction by the app itself.

Couple of ideas:

  • new events on MCPContext: sessionstart, sessioncompaction:
    • sessionstart fire when the UA starts the session, which I guess would be soon after document load (except if the session is shared between documents and was started earlier?) and would allow the app to send it's first observation.
    • sessioncompaction: fired when the context reaches an implementation define limit. The UA could just clear the context, and then the app could use the event to send an observation for the compacted state
    • both would require app driven observations.

The main benefit would be to allow the app itself to manage the context of the session, given that it is likely the app dev itself who is best placed to decide how to compact; for example for a ui app it could just send an observation with the latest relevant state, and then from then on only send deltas, and then resend the full state on compaction.

Ngôn ngữ chính
Bikeshed
Star
4.7k
Fork
328
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của webmachinelearning/webmcp

Tất cả issue của webmachinelearning/webmcp

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.