@@ -94,15 +94,9 @@ export async function waitForBuild(
9494writeEmitter :vscode . EventEmitter < string > ,
9595workspace :Workspace ,
9696) :Promise < Workspace > {
97- // This fetches the initial bunch of logs.
98- const logs = await client . getWorkspaceBuildLogs ( workspace . latest_build . id ) ;
99- for ( const log of logs ) {
100- writeEmitter . fire ( log . output + "\r\n" ) ;
101- }
102-
10397const socket = await client . watchBuildLogsByBuildId (
10498workspace . latest_build . id ,
105- logs ,
99+ [ ] ,
106100) ;
107101
108102await new Promise < void > ( ( resolve , reject ) => {
@@ -148,13 +142,7 @@ export async function streamAgentLogs(
148142socket :OneWayWebSocket < WorkspaceAgentLog [ ] > ;
149143completion :Promise < void > ;
150144} > {
151- // This fetches the initial bunch of logs.
152- const logs = await client . getWorkspaceAgentLogs ( agent . id ) ;
153- for ( const log of logs ) {
154- writeEmitter . fire ( log . output + "\r\n" ) ;
155- }
156-
157- const socket = await client . watchWorkspaceAgentLogs ( agent . id , logs ) ;
145+ const socket = await client . watchWorkspaceAgentLogs ( agent . id , [ ] ) ;
158146
159147const completion = new Promise < void > ( ( resolve , reject ) => {
160148socket . addEventListener ( "message" , ( data ) => {