mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 17:23:24 +00:00
Improve async share handling and enhance diagnostic output with filenames
🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
parent
4fa4246c10
commit
d0ad09d798
2 changed files with 6 additions and 2 deletions
|
|
@ -65,7 +65,11 @@ export namespace Session {
|
|||
log.info("created", result);
|
||||
state().sessions.set(result.id, result);
|
||||
await Storage.writeJSON("session/info/" + result.id, result);
|
||||
await share(result.id);
|
||||
share(result.id).then((shareID) => {
|
||||
update(result.id, (draft) => {
|
||||
draft.shareID = shareID;
|
||||
});
|
||||
});
|
||||
Bus.publish(Event.Updated, {
|
||||
info: result,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ export const edit = Tool.define({
|
|||
output += `\nThis file has errors, please fix\n<file_diagnostics>\n${issues.map(LSP.Diagnostic.pretty).join("\n")}\n</file_diagnostics>\n`;
|
||||
continue;
|
||||
}
|
||||
output += `\n<project_diagnostics>\n${issues.map(LSP.Diagnostic.pretty).join("\n")}\n</project_diagnostics>\n`;
|
||||
output += `\n<project_diagnostics>\n${file}\n${issues.map(LSP.Diagnostic.pretty).join("\n")}\n</project_diagnostics>\n`;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue