File tree Expand file tree Collapse file tree
packages/provider-opencode/src/server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,10 +99,8 @@ export const make = Effect.fn("OpenCodeServerLedger.make")(function* (input: {
9999 const directory = path . join ( input . stateDir , ENTRY_DIRECTORY ) ;
100100 const recordable = platform === "linux" || platform === "darwin" ;
101101
102- const observeLinux = Effect . fn ( "OpenCodeServerLedger.observeLinux" ) ( function * (
103- pid : number ,
104- group ?: number ,
105- ) {
102+ // A process-group scan calls this for every /proc entry; avoid a span per process.
103+ const observeLinux = Effect . fnUntraced ( function * ( pid : number , group ?: number ) {
106104 const stat = yield * fs . readFileString ( `/proc/${ pid } /stat` ) ;
107105 const fields = stat
108106 . slice ( stat . lastIndexOf ( ")" ) + 2 )
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ const decodeEnvelope = Schema.decodeUnknownOption(
9191 ) ,
9292) ;
9393
94- const undecodable = Effect . fn ( "OpenCode2Client.undecodable" ) ( function * ( data : string ) {
94+ // Rejected stream frames can be frequent when the server introduces new event types.
95+ const undecodable = Effect . fnUntraced ( function * ( data : string ) {
9596 const envelope = decodeEnvelope ( data ) ;
9697 const type = envelope . _tag === "Some" ? envelope . value . type . slice ( 0 , 80 ) : "<unreadable>" ;
9798 const sessionID = envelope . _tag === "Some" ? envelope . value . data ?. sessionID : undefined ;
You can’t perform that action at this time.
0 commit comments