MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / start_turn

Method start_turn

atomic-cli/tests/it/agent_git_commit_absorb_test.rs:144–149  ·  view source on GitHub ↗

Start the session and open a turn. Returns the session's Draft view.

(&self)

Source from the content-addressed store, hash-verified

142
143 /// Start the session and open a turn. Returns the session's Draft view.
144 fn start_turn(&self) -> String {
145 self.hook("session-start");
146 self.hook("user-prompt");
147 let view = fs::read_to_string(self.root().join(".atomic/current_view")).unwrap();
148 view.trim().to_string()
149 }
150
151 fn write(&self, path: &str, content: &str) {
152 let full = self.root().join(path);

Calls 3

hookMethod · 0.45
unwrapMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected